它们还有一些内嵌的数据结构,像数组、哈希表和对像记录一样的结构的某种支持。
They also have some built-in data structures like arrays, hashes, and some sort of support for record-like structures.
这个示例将在不同表中存储布尔值、标量、数组和散列。
This example will store booleans, scalars, arrays, and hashes in separate tables.
这种变体还指定了数组和表等标准结构以改进复合对象的管理。
This variant also specifies standard structures such as arrays and tables for improved compound object management.
与角色表一样,提示将被添加到数组中,经过序列化并存储到文本文件中。
As with the character sheet, the notes are added to an array, serialized, and stored in a text file.
接下来,寻找演员表,并将它们加载到一个带有各自声音的数组中。
Next, you look for the cast of players and load them into an array with the voices they are to use.
理论上,哈希表是一个非常简单的构造,就是数组或链表的集合被划分到有限数量的存储体中。
In theory the hash table is a rather simple construct, just collection of arrays or linked lists divided into a finite number of buckets.
此函数接受两个参数:表的名称以及字段名和值的关联数组。
The function takes two arguments: the name of the table and an associative array of field names and values.
该步骤接受JSON中声明的条目数组,使用它动态地构建一个显示统计信息细节的html表。
This step takes the items array declared in the JSON and USES it to dynamically build an HTML table showing the statistics details.
我们还要实现另外一些任务:让这个表包含完整的结构定义;还要确保这个数组前面没有空项,这样就不会浪费空间。
A little extra work would also allow tables containing full struct definitions; a little more would ensure that space isn't wasted at the front of the array with useless empty entries.
一个参数是描述数据库的关联数组集合:表名、列名、主键和外键。
One parameter is a collection of associative arrays that describe the database: table names, column names, primary keys, and foreign keys.
因此我们将状态表实现为一个二维的函数关联数组。
You will take advantage of this by implementing your state table as a two-dimensional associative array of functions.
数组集合包含的所有行都将显示在表中。
The array collection contains as many rows as will be displayed in the table.
在这里应该提供一个表空间映射数组,映射由括号包围。
This is an array of tablespace mappings surrounded by brackets.
高效,这是通过使用Bartok的对象、方法表和数组的本地布局达到的。
Highly efficient through the use of Bartok's native layouts for objects, method tables and arrays.
样式表使用count函数计算数组大小。
The stylesheet computes the array size with the count function.
这个方法使用当前状态和事件类型作为关联数组的索引,从actionTransitionFunctions表中选择要调用的函数。
The method does select a function to call from the actionTransitionFunctions table using the current state and event type as associative array indexes.
当遍历结束之后,我们将列数组分配给表的 “columns”属性。
When the loop is over, we assign the array of columns to the table's property "columns."
创建表后,需要对浇头数组中的每个条目使用一条insert语句。
After you create the table, you use one insert statement for each entry in your toppings array.
为抽象化底层数据库的具体数据并简化模块开发,DrupalV 6引入了一个SchemaAPI(参见参考资料),以便使用纯php关联数组定义表。
To abstract the specifics of the underlying database and to simplify module development, Drupal V6 introduces a Schema API (see Resources) to define tables using plain PHP associative arrays.
此处的技巧是:将表名数组从外部的block隐式地传递到内部的block中。用显式方式传递会让DSL看起来很丑陋。
The trick is getting the table names array from the outer block into the inner block without explicitly passing it in somehow (which would have made the DSL ugly).
以数组集合的形式存在的表内容被作为参数传递给createcolumns函数。
The table's content, in the form of an array collection, is passed to the createColumns function as a parameter.
然后将所有数据作为一个哈希表附加到剧集数组,该数组是一个成员变量。
It then appends all of that data as a hash table to the episodes array, which is a member variable.
清单5设置了目标电子表格和工作表,然后创建了一个行数据数组,包含列-值映射。
Listing 5 sets the target spreadsheet and worksheet and then creates an array of row data containing column-value mappings.
这两个变量将包括连续日程表日期数组。
These variables will contain the array of sequential calendar dates.
然后,值(字符串或数值)存储到一个二维数组中,读取完整个工作表之后,该数组被返回给调用例程。
The value, string or numeric, is then stored in a two-dimensional array, which is returned to the calling routine after the whole sheet has been read.
表中每行有多少单元格,这个数组中就有多少个函数。
There are as many functions in this array as there are cells in each table row.
有了所找到的标记的数组后,创建一张表,表中每一行都有单一一个图像标记,该标记使用源中的文件名。
After you have the array of the found tags, you create a table in which each row has a single image tag that USES the file name in the source.
相反,它们使用表之间的关系来创建对象之间的一到多结构,这与数组具有相同的效果。
Instead, they use relations among tables to create a one-to-many structure between objects, which has the same effect as an array.
要为哈希表、数组和标量都提供视图多好呀,为什么不呢?
If different views can be provided for hashes, arrays, and scalars, why stop there?
由于这个命令需要以一个数组作为参数,所以将原来的哈希表拆解为一个数组,拆解的方式是,在数组中,每个值跟在它的键的后面。
Since this command expects an array, the original hash is unwound into an array in such a way that the values follow their respective keys in the array.
应用推荐