PHP » GoLang |
login |
register |
about
|
GoLang mysqli_result::fetch_object
request it (446)
GoLang replacement for PHP's mysqli_result::fetch_object
[edit | history]
PHP mysqli_result::fetch_objectPHP original manual for mysqli_result::fetch_object [ show | php.net ]mysqli_result::fetch_objectmysqli_fetch_object(PHP 5, PHP 7) 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 = "stdClass"
[, array $params
]] )Procedural style
object mysqli_fetch_object
( mysqli_result
$result
[, string $class_name = "stdClass"
[, 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
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
|
more
Recently updated
more
Most requested
more
Last requests
|