RE: [PHP-DB] Using strings
| From: | Stewart Taylor | Date: | Fri, 16 Mar 2001 09:16:55 +0000 |
| Subject: | RE: [PHP-DB] Using strings | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7535@lists.php.net to get a copy of this message | ||
$year2 = substr($year,2,2)
-----Original Message-----
From: lvanstae@enssat.fr [mailto:lvanstae@enssat.fr]
Sent: 16 March 2001 09:06
To: php-db@lists.php.net
Subject: [PHP-DB] Using strings
Hi all
do you know how to delete the 2 first characters of a string. I have to
put a
string year in a database (4 digits year) and somewhere else I need only the
last two digits. How do I get them from my string "year" ?
Laurent Vanstaen
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net