3
PhP String: Trmi all before match
by attock on 2007/6/20 16:11:49
how to trim every thing until a match within a php string.
e.g.
$x = "I would like to trim every thing until here okie"
and the output should be " Okie"
thanks
__________
e.g.
$x = "I would like to trim every thing until here okie"
and the output should be " Okie"
__________
Something is missing... like maybe the some code.
Please clarify, Thank you... BlueStocking
EDIT ADDON: @zyspec
$newstr = stristr($x,'okie');
Thanks, now that makes sense. Thanks...