mysql_fetch_object — Fetch a result row as an object
Warning
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.
Instead, the MySQLi or PDO_MySQL extension should be used.
See also MySQL: choosing an API guide.
Alternatives to this function include:
mysql_fetch_object() is similar to
mysql_fetch_array(), with one difference - an
object is returned, instead of an array. Indirectly, that means
that you can only access the data by the field names, and not by
their offsets (numbers are illegal property names).
Note:
Field names returned by this function
are case-sensitive.
Note:
This function sets NULL fields to
the PHP null value.
See Also
mysql_fetch_array() - Fetch a result row as an associative array, a numeric array, or both