Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/?
i) fol
ii) fool
iii) fooool
iv) fooooool
a) Only i)
b) ii) and iii)
c) i), iii) and iv)
d) i) and iv)
Answer: b
Explanation: This matches f followed by two to four occurrences of o.
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