FreeBenzine Posted August 28, 2012 Report Share Posted August 28, 2012 How can I explode the following string: The first "baby boy" was naughtly,cute into array("The", "first", "baby boy", "was", "naughty", "cute") So that the text in quotation is treated as a single word. In addition I would like to split on commas and spaces. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 28, 2012 Report Share Posted August 28, 2012 This might be helpful? http://stackoverflow.com/questions/2202435/php-explode-the-string-but-treat-words-in-quotes-as-a-single-word 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.
Note: Your post will require moderator approval before it will be visible.