http://php.net/substr
On Sun, May 14, 2006 12:13 pm, 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);
>
> Ross
>
> --
> PHP General Mailing List (http://www.php.ne
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
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);
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo