Examveda
Examveda

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>");
?>

A. Swapna Lawrence you are really pretty!

B. Swapna Lawrence you are reallypretty!

C. Swapna Lawrence you are really pretty!

D. Swapna Lawrence you are reallypretty!

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> HTML Forms Handling

Join The Discussion

Comments ( 1 )

  1. Hassan Ahaj
    Hassan Ahaj :
    3 years ago

    SwapnaLawrenceyou are reallypretty!

Related Questions on HTML Forms Handling