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? 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 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() Link to comment https://forums.phpfreaks.com/topic/227803-extracting-data/#findComment-1174772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.