Programming - PHP

36.

What happens if no file path is given in include() function ?

Answer

Answer :

Option C

Explanation :


Files are included based on the file path given or, if none is given, the include_path specified. If the file isn't found in the include_path, include will finally check in the calling script's own directory and the current working directory before failing.
37.

Which one of the following is the right way to invoke a method ?

Answer

Answer :

Option A
38.

Which one of the following method is invoked when a value is assigned to an undefined property ?

Answer

Answer :

Option B

Explanation :


When you set a value (with the object property never declared in the class), the __set magic method is automatically called and sets the value.
39.

What happens if mysql_fetch_array() if two or more columns of the result have the same field names ?

Answer

Answer :

Option C
40.

get_loaded_extensions() returns

Answer

Answer :

Option B
Jump to page number :