|
mysqli_result::fetch_objectmysqli_fetch_objectReturns the current row of a result set as an object BeschreibungObjektorientierter Stil
object mysqli_result::fetch_object
([ string
$class_name = "stdClass"
[, array $params
]] )Prozeduraler Stil
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. Parameter-Liste
Rückgabewerte
Returns an object with string properties that corresponds to the fetched
row or
BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Pueblo (USA) Arvada (USA) Cape Coral (USA) Green Bay (USA) Santa Clara (USA) Siehe auch
|