Programming - PHP
16.
The ________ function checks if the "end-of-file" (EOF) has been reached.
Answer
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.
Answer :
Option DExplanation :
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
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.
Answer :
Option CExplanation :
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.
19.
Which function is used to convert ampersand(&) to & double quote(") to " in PHP ?
Answer
Answer :
Option B20.
In which variable is the users IP address stored ?
Answer
$_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.
Answer :
Option BExplanation :
$_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 :