Re: [PHP] Trimming 2 Characters from the end of a string?

2001-05-21 Thread Gyozo Papp
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

[PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Jason
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]

Re: [PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Rasmus Lerdorf
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