Page 1 of 1

Removing SubString from a string

Posted: Sat Jul 25, 2009 6:52 pm
by varma457
Hi,



I have problem with String operation..

I would like to remove substring from a given string..
like..


/$string="Hi how hi hhii ";
//$string1="Hi how";
//$newstring=ltrim($string,$string1);


I am not able to remove "Hi how" ..

I am able to remove "Hi"..

help me rgarding this problem..

Re: Removing SubString from a string

Posted: Sat Jul 25, 2009 8:10 pm
by jackpf
You mean str_replace()?

Re: Removing SubString from a string

Posted: Sat Jul 25, 2009 9:56 pm
by varma457
Thank you..I got it..