RE: [PHP-WIN] Simple string function help needed

2002-05-02 Thread Ross Fleming
Here you go: $string = substr($string, 0, -4); Ross -Original Message- From: RS Herhuth [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 02:06 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Simple string function help needed List, This is an easy one but I'm under the gun and need some

[PHP-WIN] Simple string function help needed

2002-05-02 Thread RS Herhuth
List, This is an easy one but I'm under the gun and need some help. I have a situation where I need to trim the last four elements of a string off from a variable. Examples of what the string will look like(teses are known, trusted values and won't change): $string = "Atlanta CEO" $string = "L