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 Share on other sites More sharing options...
litebearer Posted February 15, 2011 Share Posted February 15, 2011 preg_replace Quote Link to comment 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 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.