![]() |
|
|
+ Search |
![]()
|
Mar 5th, 2002 13:44
Nick R, Babu B,
//if the string is say
$my_string="this is my string";
//remove "my" from $my_string
$my_new_string=str_replace("my", "", $my_string);
// replace "my", with ""(blank_space), in $my_string
//the first set of quotes "my" will be whatever you want to replace
//the second set of quotes "" will be whatever you want to remove
//and $my_string will be the string that your editing