ferryboi Posted November 19, 2011 Share Posted November 19, 2011 Howdy All i currently have <? echo $guild ['name'];?> and i want to put <> around what is shown from the $guild ['name'] , but where ever i try the <> it cancels out and just doesnt show the name any more - currently its making us do the following <-<? echo $guild ['name'];?>-> as even if we try an echo with jsut the < and > it cancels it out Any specific way in which i can do this thanks Link to comment https://forums.phpfreaks.com/topic/251446-putting-around-php-or-adding-it-in/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 19, 2011 Share Posted November 19, 2011 < and > have meaning in HTML (they indicate the start and end of HTML tags.) You need to use < and > You can also use htmlspecialchars or htmlentities to get php to convert them for you. Link to comment https://forums.phpfreaks.com/topic/251446-putting-around-php-or-adding-it-in/#findComment-1289592 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.