|
mysqli_result::fetch_objectmysqli_fetch_objectReturns the current row of a result set as an object DescriptionObject oriented style
object mysqli_result::fetch_object
([ string
$class_name
[, array $params
]] )Procedural style
object mysqli_fetch_object
( mysqli_result
$result
[, string $class_name
[, array $params
]] )The mysqli_fetch_object will return the current row result set as an object where the attributes of the object represent the names of the fields found within the result set. Note that mysqli_fetch_object sets the properties of the object before calling the object constructor. Parameters
Return Values
Returns an object with string properties that corresponds to the fetched
row or
Changelog
ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Pueblo (USA) Arvada (USA) Cape Coral (USA) Green Bay (USA) Santa Clara (USA) See Also
|