Mysql_fetch_object () or mysql_fetch_array (), which is better and why?

mysql_fetch_object () or mysql_fetch_array (), which is better and why?

+3
source share
1 answer

Both are good. Choose what you like best - objects or arrays.

Better yet, use PDO or mysqli instead of the mysql extension.

+5
source

Source: https://habr.com/ru/post/1753289/