sub string related
Posted: Thu Jan 14, 2010 10:00 am
Hello,
I'm looking for the best way to extract a sub string from a string without knowing its location. For example,
$string = "Bob had a baby its a boy";
I want to get (a baby) out of it and discard the rest
All the options I found need to have its offset or needs a delimiter char.
Thanks,
incubi
I'm looking for the best way to extract a sub string from a string without knowing its location. For example,
$string = "Bob had a baby its a boy";
I want to get (a baby) out of it and discard the rest
All the options I found need to have its offset or needs a delimiter char.
Thanks,
incubi