Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the difference between mysql_fetch_object() and mysql_fetch_array()?
#1
What is the difference between mysql_fetch_object() and mysql_fetch_array()?
Reply
#2
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).
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Describe the difference between cookies, sessionStorage, and localStorage. Kajal 3 16,209 07-15-2020, 12:00 PM
Last Post: RH-Calvin
  Difference between div and span? beingchinmay 3 4,567 07-15-2020, 11:54 AM
Last Post: RH-Calvin
  Difference between swing and AWT? beingchinmay 0 2,987 04-13-2016, 02:39 PM
Last Post: beingchinmay
  What is the difference between $message and $$message? beingchinmay 0 2,814 04-11-2016, 05:19 PM
Last Post: beingchinmay

Forum Jump:


Users browsing this thread: 1 Guest(s)