Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the value of the variable $input in the following PHP code?
<?php
$input = “Swapna<td>Lawrence</td>you are really<i>pretty</i>!”;
$input = strip_tags($input,”<i></i>”);
echo $input;
?>

What will be the value of the variable $input in the following PHP code?
<?php
$input = “Swapna<td>Lawrence</td>you are really<i>pretty</i>!”;
$input = strip_tags($input,”<i></i>”);
echo $input;
?>
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>!

Answer: d
Explanation: Italic tags <i></i> might be allowable, but table tags <td></td> could potentially wreak havoc on a page.

Join The Discussion