Programming - PHP
36.
What happens if no file path is given in include()
function ?
Answer
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.
Answer :
Option CExplanation :
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.
38.
Which one of the following method is invoked when a value is assigned to an undefined property ?
Answer
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.
Answer :
Option BExplanation :
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 CJump to page number :