$year2 = substr($year,2,2)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 16 March 2001 09:06
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to