Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


•What is the difference between “mysql_fetch_array”
and “mysql_fetch_object?

Answers were Sorted based on User's Feedback



•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?..

Answer / ravi farare

mysql_fetch_array() fetches record from database table as an
array. We can access each record like arr[0],arr[1]....etc.
on the other side mysql_fetch_object() fetches record from
database table as an object. So We can access each record
like obj->[column name].

Is This Answer Correct ?    21 Yes 1 No

•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?..

Answer / kapil dhiman

mysql_fetch_array() return an array of records
mysql_fetch_object return an object of records

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php? Why it is used?

0 Answers  


How to create reusable code in php?

0 Answers  


Give any ten basic functions in PHP?

4 Answers   T3 Softwares,


Which is true about the singleton design pattern?

0 Answers  


Which is the best method to fetch the data from mysql? 1.mysql_fetch_array() 2.mysql_fetch_object() 3.mysql_fetch_row() 4.mysql_fetch_assoc()

6 Answers  


What does the scope of variables means?

0 Answers  


What is meant by content management system?

3 Answers   Global Logic, IBEE, TCS, Toyota,


Is php faster than javascript?

0 Answers  


What is difference between print_r and echo in php?

0 Answers  


why we use @symbol before the variable

5 Answers   HCL, Numark,


What is a substring in php?

0 Answers  


Explain the difference between static and dynamic websites?

0 Answers  


Categories