Re: deleting characters from strings
| From: | Marek Kilimajer | Date: | Sat, 01 Nov 2003 17:30:33 +0000 |
| Subject: | Re: deleting characters from strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168277@lists.php.net to get a copy of this message | ||
Look at substr
Robb Kerr wrote:
I feel really stupid posting this but I can't seem to find the correct syntax in the language guide. I have a string which has been progressively built during a FOREACH loop through an array (a SELECT statement in which the WHERE part is built with ORs from the array of entries). The final query winds up with an extra "OR" at the end. I need to simply delete characters (STRLEN($string) - 3) through STRLEN($string). What's the proper syntax? Thanx,