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! Quote 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))); ?> Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.