suppose i use the code from PHP manual :
Code: Select all
$text = "\t\tThese are a few words ... ";
echo trim($text); // "These are a few words ..."
echo trim($text, " \t."); // "These are a few words "
echo trim($text, " ."); // "These are a few words "And how to strip the other word, example i want to strip "world"
thanks
feyd | hey look at that,
Code: Select all
works [/color]