Tuesday, February 17, 2009

PHP Interview Questions

What are the difference between require_once and include, include_once?
require_once(), include_once() both the functions include script once in file even it include many times using *_once function.

require() and include() function provide facility to include file many times in script file.

What is the difference between mysql_fetch_object & mysql_fetch_array?
There is only difference between mysql_fetch_object() and mysql_fetch_array().
mysql_fetch_object() : it is return an object.
mysql_fetch_array() : it is return an Array.

In mysql_fetch_object() you can access the data by the field names whereas in mysql_fetch_array() you can access data by it's offsets.

Who is the father of PHP ?
Rasmus Lerdorf is know as a father of PHP.

What is PHP ?
PHP Hypertext Preprocessor is An open source server side scripting language/programming language used to create dynamic web pages that allows web developers to create dynamic pages that interacts with databases.

No comments:

Post a Comment