a) fgets()
b) fget()
c) fileget()
d) filegets()
Answer: a
Explanation: The function fgets() will return a line from an open file. This stops returning on a new line, at the specified length, or at EOF, whichever comes first. Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.
Related Posts
In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.
Which of the following are types of PHP authentication implementation methodologies?
i) Hard-coding a login pair directly into the script
ii) File-based authentication
iii) Data-based authentication
iv) PEAR’S HTTP authenticationWhich function is used to verify whether a variable contains a value?
Which of the following PHP function is commonly used when handling authentication via PHP?
i) header()
ii) footer()
iii) inset()
iv) isset()Which of the following variables does PHP use to authenticate a user?
i) $_SERVER[‘PHP_AUTH_USER’].
ii) $_SERVER[‘PHP_AUTH_USERS’].
iii) $_SERVER[‘PHP_AUTH_PU’].
iv) $_SERVER[‘PHP_AUTH_PW’].How many predefined variables does PHP use to authenticate a user?
How many validation filters like FILTER_VALIDATE_EMAIL are currently available?
Join The Discussion