Re: help with string handling !!
| From: | Cynic | Date: | Wed, 03 Jan 2001 21:26:32 +0000 |
| Subject: | Re: help with string handling !! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4778@lists.php.net to get a copy of this message | ||
http://docs.wad.cz/php/function.substr.html
you can get the same result with either
substr( $var , 2 ) or substr( $var , -5 )
depending on whether you want everything from the
third char on, or 5 chars from the end.
At 17:58 29.12. 2000, Mujahid wrote the following:
--------------------------------------------------------------
>Hi ,
>
>Is there an equalent of RIGHT() or LEFT() functions ?
>
>For example:
>$var ="example" ;
>$var2= RIGHT($var,5)
>echo $var2 ;
>
>and the output would be "ample"
>
>Regards,
>-Mujahid
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
>For additional commands, e-mail: php-windows-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz