substr....what does this mean? (newbie)
| From: | r | Date: | Wed, 22 May 2002 06:50:41 +0000 |
| Subject: | substr....what does this mean? (newbie) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98621@lists.php.net to get a copy of this message | ||
Hi ppl,
Can you tell me what does this mean?
if (substr($text, -1) == ".")
{$test = substr($text, 0, -1);}
I know the if part searches the $text from the starting for the "."
I am just confused about what the second and third arguement does in the
substr. (Second line)
I know that this is an easy question for you PHP guys out there,
and I know i will get an answer,
so I thank you all in advance.
Cheers
-Ryan A.