You implemented your state table as a common handler for all events, plus a function array for all actions and transitions.
将状态表实现为适用于所有事件的通用处理函数,并为所有操作和转换提供一个函数数组。
This function displays a simple header, writes out the content of the array, and then prints a footer—all in plain text.
这个函数将显示一个简单的标题,写出数组内容,然后打印一个页脚 —全部采用纯文本格式。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
Function (3) gets the result row as a PHP associative array.
函数(3)以PHP关联数组的形式返回结果行。
It takes a single parameter, a function, and applies the function to each element in the array.
它接受单个参数:一个函数,并将此函数应用于数组内的每个元素。
The function takes two parameters: "array of rows" and "array of columns".
这个函数接受两个参数:“行数组”和 “列数组”。
The STORE function creates an entry in both the primary and the secondary array (normal and reverse mapping).
STORE函数同时在主数组和辅数组(常规和反向映射)中创建一个项。
This function then converts the XML elements into a PHP associative array.
这个函数将XML元素转化成PHP关联数组。
The example in Listing 1 illustrates variable creation of a variety of types (int, float, string, array, and function).
清单1中的示例说明了如何创建多种类型的变量(整型、浮点、字符串、数组和函数)。
And the use of the filter function on the Array type to apply the "greater-than," "equals," and "less-than" functions to each element therein.
可以对Array类型使用filter函数,从而对其中的每个元素应用“greater - than”、“equals”和“less -than”函数。
Use the implode function to turn that array of values into a comma-separated list.
使用implode函数将获得的数组转换为一个以逗号分隔的列表。
Function#argumentNames returns an array of strings representing the function's named arguments
Function#argumentNames返回一个字符串数组,它代表函数的命名参数
The stylesheet computes the array size with the count function.
样式表使用count函数计算数组大小。
One specifies todo tests by passing a todo array to the plan function.
一种方法是通过将todo数组传送到plan函数中来指定todo测试。
The associated values array is generated inside the hash function and is indexed using keysig characters.
关联值数组在hash函数内部生成,并使用keysig字符进行索引。
Those are not the topic of this article, of course, but the important part is that the query function returns an array of rows, each of which is itself represented as an array.
当然,这些内容并不是本文的主题。但是重要之处在于query函数,它用于返回一个行数组,其中每一行本身也表示一个数组。
The array function append (arg) adds arg to the end of the array, thus accumulating a list in the process.
数组函数append (arg)将arg添加到数组的末尾,从而在此过程中形成了一个列表。
We build the weights array in the select_parents function by stacking map on top of grep .
通过把map堆栈到grep的上部,我们在select _ parents函数里建立了weights数组。
Notice that the index function creates an array called data that contains three named indices: title, headline, and include.
注意,index函数创建了一个名为data的数组,该数组包含三个已命名的索引:title、headline和include。
To send your array of string objects, you call the JSON.stringify function, passing in the array as the argument.
要发送字符串对象数组,您调用JSON . stringify函数,将数组作为参数传递进来。
The result is a new array, where the i-th element is the result of applying the function to the i-th element of the original array.
结果是一个新数组,其中的第i个元素就是将此函数应用到原始数组的第i个元素后的结果。
It takes a function as its parameter and applies the function sequentially to each object in the Array.
它使用一个函数作为它的参数,然后依次将这个函数应用到Array中的每个对象中。
Once you have the photo XML objects in an array, you can call the map function on the array.
在照片XML对象处于数组内时,就可以对此数组调用map函数。
The input field invokes the wrapper function xajax_validateCatalogId with an array of form field values as a parameter.
输入字段调用包装器函数xajax_validatecatalogid,调用时以表单字段值数组作为参数。
In each of the top five indices of the result array, this function stores the provider name, total number of feed items received, title array, URL array, and the description array, respectively.
在结果数组的前5个索引中,此函数分别存储了提供者名称、收到的提要条目的总数、标题数组、UR l数组和描述数组。
The function used to sort the array is the compareFunction that was passed into the function when it was called.
用于对数组进行排序的函数是compareFunction,该函数是作为参数传递给 sort 函数的。
After the events have been chewed up and returned as an array from the get_events function, I need another function that exports that array of events as XML.
事件完成并作为来自get _ events函数的数组返回后,我还需要另外一个函数,将这个事件数组导出为XML。
It then executes the addStudent function, passing in the post array created on the student_add.php page.
然后,它会执行addstudent函数,传递进在student_add . php页面上创建的post数组。
The array concat function takes an array of strings as an input and returns a concatenation of the strings into a single string output.
arrayconcat函数获取一个字符串数组作为输入并在字符串输出中返回联接后的这些字符串。
They take in a function as a parameter to use when a match is found. This function receives the match array as a parameter and returns a modified string that is used as a replacement.
你可以为preg_replace_callback指定某个函数为参数,此函数能接收匹配结果数组为参数,并将数组修改后返回,作为替换的结果。
应用推荐