PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
angelic_devil
Forum Commoner
Posts: 74 Joined: Thu Apr 02, 2009 7:05 am
Post
by angelic_devil » Tue Jan 05, 2010 5:18 pm
hi for the following code the o/p is blank..plzhelp
the o/p shud be <idiot>
flying_circus
Forum Regular
Posts: 732 Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR
Post
by flying_circus » Tue Jan 05, 2010 6:14 pm
angelic_devil wrote: hi for the following code the o/p is blank..plzhelp
the o/p shud be <idiot>
right click -> view source
angelic_devil
Forum Commoner
Posts: 74 Joined: Thu Apr 02, 2009 7:05 am
Post
by angelic_devil » Tue Jan 05, 2010 6:16 pm
WAT?? ru joking...i want the string <idiot> to be printed on the screen ...not want to see the source
flying_circus
Forum Regular
Posts: 732 Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR
Post
by flying_circus » Tue Jan 05, 2010 6:35 pm
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);
?>