Re: Annoying syntax problem with RTRIM
| From: | Jason Wong | Date: | Thu, 04 Jul 2002 16:47:07 +0000 |
| Subject: | Re: Annoying syntax problem with RTRIM | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105472@lists.php.net to get a copy of this message | ||
On Friday 05 July 2002 00:41, René Fournier wrote:
> echo rtrim($feat,", ");
>
> On my local Apache-OSX web server (PHP 4.1.2), this command works fine.
> (The reason I use it is that sometimes $feat contains a comma and a
> space at the end of the string, which I want to remove (if it's there)
> before echoing.)
>
> When this same script is run on my ISP (PHP 4.0.6), I get the following
> error message:
>
> <b>Warning</b>: Wrong parameter count for rtrim() in
> <b>/u/htdocs/smarts/jupiter/callisto/include/create.inc</b> on line
> <b>216</b><br>
>
>
> Any ideas why?
RTFM!
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The heart is wiser than the intellect.
*/