see substr() in string functions (LXXIV)
- Original Message -
From: Jason [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2001. május 21. 06:35
Subject: [PHP] Trimming 2 Characters from the end of a string?
Hi,
What would be the syntax to trim 2 characters off of a given string
Hi,
What would be the syntax to trim 2 characters off of a given string?
Thanks!
--
PHP General 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]
What would be the syntax to trim 2 characters off of a given string?
$new = substr($old,0,-2);
--
PHP General 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
3 matches
Mail list logo