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? Quote 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 ;-) Quote Link to comment https://forums.phpfreaks.com/topic/247546-strip_tags-and-substr/#findComment-1271185 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.