PHP Manualmysqli_result::fetch_objectmysqli_fetch_object(PHP 5) mysqli_result::fetch_object -- mysqli_fetch_object — Returns 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 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
![]() |
PHP-Index
New Tutorial entries
|