simple string echo being blank
Posted: Tue Jan 05, 2010 5:18 pm
hi for the following code the o/p is blank..plzhelp
the o/p shud be <idiot>
Code: Select all
<?php
$y="<idiot>";
echo $y;
?>
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$y="<idiot>";
echo $y;
?>
right click -> view sourceangelic_devil wrote:hi for the following code the o/p is blank..plzhelpthe o/p shud be <idiot>Code: Select all
<?php $y="<idiot>"; echo $y; ?>
angelic_devil wrote:WAT?? ru joking...i want the string <idiot> to be printed on the screen ...not want to see the source
Code: Select all
<?php
$y = "<idiot>";
echo htmlentities($y);
?>