tqla Posted August 16, 2007 Share Posted August 16, 2007 I have this statement in my code to strip tags from my variables $$field = strip_tags(trim($value)); I'd like to add str_replace to change & to & str_replace("&",&",$value); How do I combine them do do both strip tags and str replace??? Thank you! Link to comment https://forums.phpfreaks.com/topic/65176-solved-how-do-i-format-this-statement/ Share on other sites More sharing options...
keeB Posted August 16, 2007 Share Posted August 16, 2007 <?php $field = str_replace("&", "&", strip_tags(trim($value))); ?> Link to comment https://forums.phpfreaks.com/topic/65176-solved-how-do-i-format-this-statement/#findComment-325435 Share on other sites More sharing options...
tqla Posted August 17, 2007 Author Share Posted August 17, 2007 Thank you keeB! Link to comment https://forums.phpfreaks.com/topic/65176-solved-how-do-i-format-this-statement/#findComment-326293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.