Posted by jukka on 10/13/32 11:35
Oli Filth wrote:
> mcyi2mr3@lycos.co.uk said the following on 24/12/2005 15:32:
>
>> Hi all!
>>
>> Is it possible to delete the last 3 characters in a string?
>>
>
> Yes.
>
> http://php.net/substr
>
$newstring = substr($string, -3); //returns the last three characters
stored in $string
:)
Navigation:
[Reply to this message]
|