| Re: PhP String: Trmi all before match |
| by attock on 2007/6/21 12:01:26 thank you ~ i'll give it try |
| Re: PhP String: Trmi all before match |
| by BlueStocking on 2007/6/20 23:49:57 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... |
| Re: PhP String: Trmi all before match |
| by zyspec on 2007/6/20 23:49:31 You could do it this way... le="color: #000000"><?php $x = "I would like to trim every thing until here okie"; $newstr = ucfirst(stristr($x,'okie')); $newstr now contains Okie... |
| PhP String: Trmi all before match |
| by attock on 2007/6/20 21: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 |