|
-
Jul 17th, 2009, 09:18 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Help parse string
$description = ' "klsfdsfasdfasdf" slsjfklasdf "kjsfklasdjflaksfja" ';
What I would like to do is to finish off with a string of only the first group of brackets. So everything after that is to be discarded.
I can use 'substr' to begin from the 1st letter (not the 0th as that is the first ") but how can I make it continue on until the NEXT "?
eg.
$d = substr($description,1,?);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|