What are the differences between mysql_fetch_array () mysql_fetch_object () mysql_fetch_row ()?
mysql_fetch_array() | mysql_fetch_row() | mysql_fetch_object() |
---|---|---|
This returns an array of strings corresponding to a fetched row, or FALSE if there are no rows. | It returns with a numerical array of strings corresponding to a fetched row, or FALSE if there are no rows. | This returns with an object, or a FALSE value if there are no rows. |
The returned array type depends on how result_type is defined | Here, the row is returned as an array. | This fetches a result row as an object type. |
BY Best Interview Question ON 11 Mar 2020