Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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

Who's Online

132 user(s) are online (66 user(s) are browsing Support Forums)


Members: 0


Guests: 132


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits