比如,compare方法比较两个字符串;sort和asort方法以与相应的php数组函数相同的方式对数组或关联数组进行排序。
For example, the compare method compares two strings; the sort and asort methods sort arrays or associative arrays in a way similar to the corresponding PHP array functions.
数组函数是用来对数组进行操作的。
下面是一套你会在脚本中使用到的数组函数,这些函数都非常重要。
The functions below are a set of array functions you will be using a lot in any given script, and are vitally important when using arrays.
创建数组函数的输入端会自动匹配元素或数组输入,取决你要连接的对象。
The Build array function input will automatically adapt to an element or an array input, depending on what you wire to it.
例如,图7.23中的创建数组函数被设定用来结合两个数组和一个单个元素产生一个新的数组。
For example, the Build array function shown in figure 7.23 has been configured to concatenate two arrays and one element into a new array.
创建数组函数可以将两个数组连接或结合成一个,或向数组中增加元素,这取决于你自己的设定。
Depending on how you configure it, Build array concatenates, or combines, two arrays into one, or adds extra elements to an array.
virtqueue支持它自己的由5 个函数组成的API。
The virtqueue supports its own API consisting of five functions.
关于状态机的一个极度确切的描述是它是一个有向图形,由一组节点和一组相应的转移函数组成。
An overly accurate description of a state machine is that it is a directed graph, consisting of a set of nodes and a corresponding set of transition functions.
写一系列的合适的函数组合,画出图4.1所示的花图案。
Write an appropriately general set of functions that can draw flowers as in Figure 4.1.
写一系列的合适的函数组合,画出图4.2所示的形状。
Write an appropriately general set of functions that can draw shapes as in Figure 4.2.
Blue包含许多内置类型,包括数字(包含整型和浮点型)、字符串、数组、函数等等。
Blue includes a number of built-in types, including Numbers (which covers integer and floating point types), strings, arrays, functions, and others.
当然可以那样做,但分离函数组件总是最佳做法。
You could do that, but it's always best to keep your functional components separate.
清单1中的示例说明了如何创建多种类型的变量(整型、浮点、字符串、数组和函数)。
The example in Listing 1 illustrates variable creation of a variety of types (int, float, string, array, and function).
关联值数组在hash函数内部生成,并使用keysig字符进行索引。
The associated values array is generated inside the hash function and is indexed using keysig characters.
Function#argumentNames返回一个字符串数组,它代表函数的命名参数
Function#argumentNames returns an array of strings representing the function's named arguments
样式表使用count函数计算数组大小。
The stylesheet computes the array size with the count function.
只需创建一个函数数组或测试装置、然后对之进行注册,加载后,DOH就会执行它们。
You create an array of functions or test fixtures, register them, and the DOH will execute them when loaded.
表中每行有多少单元格,这个数组中就有多少个函数。
There are as many functions in this array as there are cells in each table row.
因此我们将状态表实现为一个二维的函数关联数组。
You will take advantage of this by implementing your state table as a two-dimensional associative array of functions.
函数(3)以PHP关联数组的形式返回结果行。
Function (3) gets the result row as a PHP associative array.
目前我们讨论的Vimscript基本特性(语句和函数,数组和哈希表)已经足够为Vim的核心特性集创建几乎任何类型的添加项。
The basic features of Vimscript covered so far (statements and functions, arrays, and hashes) are sufficient to create almost any kind of addition to Vim's core feature set.
例如,您可以使用填充函数来填充数组,这对于物理模型来说非常有用。
For example, you can populate arrays based on populating functions, which is likely to be useful for physical models.
这个数组应包含测试函数、测试装置(fixture)或同时包含两者。
The array should contain test functions, test fixtures, or a mix of both.
使用implode函数将获得的数组转换为一个以逗号分隔的列表。
Use the implode function to turn that array of values into a comma-separated list.
数组初始值设定项也可以在调用函数中内联使用。
Array initializers may also be used inline for calling functions.
那么,只有带“survived”域的数组元素(在前面由survive()函数设定的)通过grep。
Then, only elements of the array with the "survived" field (set earlier by the survive() function) get through the grep.
按照顺序使用来自数组的Item逐个调用每个函数,并用返回的内容填充对应的单元格。
Each function is called in turn with an Item from the array and should return the content with which to populate the corresponding cell.
这个函数将XML元素转化成PHP关联数组。
This function then converts the XML elements into a PHP associative array.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
应用推荐