mcmuney Posted February 15, 2011 Share Posted February 15, 2011 $example "Q: Example? A:" Let's assume that I'd like to display $example but exclude "Q:" and "A:", how would I do that? Quote Link to comment https://forums.phpfreaks.com/topic/227803-extracting-data/ Share on other sites More sharing options...
litebearer Posted February 15, 2011 Share Posted February 15, 2011 preg_replace Quote Link to comment https://forums.phpfreaks.com/topic/227803-extracting-data/#findComment-1174735 Share on other sites More sharing options...
jcbones Posted February 16, 2011 Share Posted February 16, 2011 For something this simple, you could probably use: str_replace() Quote Link to comment https://forums.phpfreaks.com/topic/227803-extracting-data/#findComment-1174772 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.