|
RowResult::fetchAllGet all rows from result Description
public array mysql_xdevapi\RowResult::fetchAll()
Fetch all the rows from the result set. ParametersThis function has no parameters. Return ValuesA numerical array with all results from the query; each result is an associative array. An empty array is returned if no rows are present. ExamplesExample #1 mysql_xdevapi\RowResult::fetchAll example The above example will output something similar to:
Array
(
[0] => Array
(
[name] => John
[age] => 42
)
[1] => Array
(
[name] => Sam
[age] => 33
)
)
|