trim function not clear
Posted: Tue Mar 08, 2005 6:13 pm
dear all
suppose i use the code from PHP manual :
from that code, i cannot figure out what the \t mean ? because with and without \t in line 3 and 4 have the same result.
And how to strip the other word, example i want to strip "world"
thanks
feyd | hey look at that,
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]