Posted by naixn on 12/02/06 19:49
alex.kemsley wrote :
> Hi Guys,
>
> Just a quick question
> I have a string that I want to cut the last 5 characters off.
> How do I go about this.
>
> Many thanks
>
> Alex Kemsley
>
$text = substr($text, 0, -5);
Here you are :)
--
Naixn
http://fma-fr.net
[Back to original message]
|