Monday, June 7, 2010

PHP - Interview questions - IV

Q. What is the difference between mysql_fetch_object and mysql_fetch_array?
Answer:
MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array.




Q. Suppose your Application using the mode Then how can u configure php engine to support mode ?


Answer:
If you change the line: short_open_tag = off in php.ini file.
Then your php engine support only mode.

No comments:

Post a Comment