SF23103 Posted September 20, 2011 Share Posted September 20, 2011 Ok, I'm stumped on this one. I'm looking to strip html code from the following output: <?php echo substr($f7,0,60); ?> How do I insert the strip_tags into that statement? Link to comment https://forums.phpfreaks.com/topic/247546-strip_tags-and-substr/ Share on other sites More sharing options...
SF23103 Posted September 20, 2011 Author Share Posted September 20, 2011 Solved on my own :-) <?php echo strip_tags(substr($f7,0,60)); ?> Had some ()'s in the wrong spots ;-) Link to comment https://forums.phpfreaks.com/topic/247546-strip_tags-and-substr/#findComment-1271185 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.