Programming - PHP

16.

The ________ function checks if the "end-of-file" (EOF) has been reached.

Answer

Answer :

Option D

Explanation :


The feof() function is useful for looping through data of unknown length. This function returns TRUE if an error occurs, or if EOF has been reached. Otherwise it returns FALSE.
17.

Language construct used to output one or more strings :

Answer

Answer :

Option C

Explanation :


Both echo and print statement works exactly the same way except that the print statement can only output one string while the echo statement can output one or more strings.
18.

Function used to reverse the order of the elements in an array :

Answer

Answer :

Option A
19.

Which function is used to convert ampersand(&) to & double quote(") to " in PHP ?

Answer

Answer :

Option B
20.

In which variable is the users IP address stored ?

Answer

Answer :

Option B

Explanation :


$_SERVER is a PHP super global variable which holds information about headers, paths, and script locations. The entries in this array are created by the web server.
Jump to page number :