Re: triming a query

From: Date: Sun, 14 May 2006 17:33:34 +0000
Subject: Re: triming a query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236152@lists.php.net to get a copy of this message
Ross wrote:
Not so good with the string functions but I want to remove the last 15 characters from a query. Thought this would work. echo "the query is".rtrim($query, 15);
echo "the query is".substr($query,0,-15); -Rasmus

« previous php.general (#236152) next »