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,

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to