?
What will be the value of the variable $input in the following PHP code?
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>");
?>
<?php
$input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
$input = strip_tags($input,"<i></i>");
?>
Answer & Solution
Correct Answer:
Option
D
Italic tags <i></i> might be allowable, but table tags <td></td> could potentially wreak havoc on a page.
Join the Discussion
Login to post a comment or share your explanation.
Login