DocResult::fetchOneGet one row Description
public array mysql_xdevapi\DocResult::fetchOne()
Fetch one result from a result set. ParametersThis function has no parameters. Return Values
The result, as an associative array
or ExamplesExample #1 mysql_xdevapi\DocResult::fetchOne example
The above example will output something similar to: array(4) { ["_id"]=> string(28) "00005b6b53610000000000000125" ["age"]=> int(42) ["job"]=> string(6) "Butler" ["name"]=> string(8) "Reginald" } |