这个函数将数据写入一个打开的文件中。
清单9中的 addProduct() 函数接收一个新产品记录作为键-值对数组,然后使用 Zend_Db对象的insert() 函数将记录写入到数据库表中。
The addProduct() method in Listing 9 accepts a new product record as an array of key-value pairs and then uses the Zend_Db object's insert() method to write this record to the database table.
在constructor函数中,会打开一个新的跟踪文件,分析数据的地址跟踪就是写入这个文件的;在destructor函数中,会关闭这个跟踪文件(参见清单3)。
In the constructor function, a new trace file is opened into which the profiling address trace will be written; within the destructor function, the trace file is closed (see Listing 3).
这个函数把流的所有未写入的数据传递给kernel。
This function causes any unwritten data for the stream to be passed to the kernel.
这个函数把流的所有未写入的数据传递给kernel。
This function causes any unwritten data for the stream to be passed to the kernel.
应用推荐