|
PHP5中文手册
mysqli_fetch_rowresult->fetch_row()(No version information available, might be only in CVS) result->fetch_row() — Get a result row as an enumerated array 说明Procedural style:
mixed mysqli_fetch_row
( mysqli_result $result
)
Object oriented style (method): mysqli_result
mixed fetch_row
( void
)
Fetches one row of data from the result set and returns it as an enumerated array, where each column is stored in an array offset starting from 0 (zero). Each subsequent call to this function will return the next row within the result set, or NULL if there are no more rows. 参数
返回值mysqli_fetch_row() returns an array of strings that corresponds to the fetched row or NULL if there are no more rows in result set.
范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|