Been using PHP/MySQL for a little while now, and I’m wondering if there are any specific advantages (performance or otherwise) to using mysql_fetch_object() vs mysql_fetch_assoc() / mysql_fetch_array().
Been using PHP/MySQL for a little while now, and I’m wondering if there are
Share
Performance-wise it doesn’t matter what you use. The difference is that mysql_fetch_object returns object:
mysql_fetch_assoc() returns associative array:
and mysql_fetch_array() returns array: