Question
<?php
$input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
$input = strip_tags($input,"<i></i>");
?>
a.
Swapna Lawrence you are really pretty!
b.
Swapna <td>Lawrence</td> you are really<i>pretty</i>!
c.
Swapna <td>Lawrence</td> you are really pretty!
d.
Swapna Lawrence you are really<i>pretty</i>!
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the value of the variable $input in the following PHP code?
Similar Questions
Discover Related MCQs
Q. To validate an email address, which flag is to be passed to the function filter_var()?
View solution
Q. How many validation filters like FILTER_VALIDATE_EMAIL are currently available?
View solution
Q. How many predefined variables does PHP use to authenticate a user?
View solution
Q. 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’].
View solution
Q. Which of the following PHP function is commonly used when handling authentication via PHP?
i) header()
ii) footer()
iii) inset()
iv) isset()
View solution
Q. Which function is used to verify whether a variable contains a value?
View solution
Q. 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 authentication
View solution
Q. In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.
View solution
Q. The authenticationFile.txt, the file which stores username and password should be stored ___ the server document root.
View solution
Q. Which function is used to split a string into a series of substrings, with each string boundary is determined by a specific separator?
View solution
Q. In which of the following situations does file-based authentication become inconvenient.
i) small list
ii) large number of user
iii) users are being regularly added
iv) static authentication
View solution
Q. Which is the most powerful authentication method among the four?
View solution
Q. Which directive determines whether PHP scripts on the server can accept file uploads?
View solution
Q. Which of the following directive determines the maximum amount of time that a PHP script will spend attempting to parse input before registering a fatal error?
View solution
Q. What is the default value of max_input_time directive?
View solution
Q. Since which version of PHP was the directive max_file_limit available.
View solution
Q. What is the default value of the directive max_file_limit?
View solution
Q. Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
View solution
Q. If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
View solution
Q. Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!