update : 2015.11.03
php.shukuma.com검색:
|
mysqli_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 설명객체 기반 형식
object mysqli_result::fetch_object
([ string
$class_name = "stdClass"
[, array $params
]] )절차식 형식
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. 인수
반환값
Returns an object with string properties that corresponds to the fetched
row or
예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제들의 출력: Pueblo (USA) Arvada (USA) Cape Coral (USA) Green Bay (USA) Santa Clara (USA) 참고
|