Home » PHP » PHP Forms » Question
  1. What will be the value of the variable $input in the following PHP code?
    <?php
    $input = "Ajit<td>Gupta</td>you are really<i>Handsome</i>!";
    $input = strip_tags($input,"<i></i>");
    ?>
    1. Error
    2. Ajit Gupta you are really Handsome!
    3. Ajit Gupta you are really Handsome
    4. Nothing
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.