RTRIM() - Won't accept 2nd Param

From: Date: Sat, 27 Jul 2002 23:27:50 +0000
Subject: RTRIM() - Won't accept 2nd Param
Groups: php.general 
Request: Send a blank email to php-general+get-110011@lists.php.net to get a copy of this message
When I issue this command to remove any commas at end of string: $query = rtrim($query, ","); PHP give me an error saying "Wrong parameter count for rtrim()". How can this be? The online manual shows rtrim can accept two parameters. Shouldn't this work? I have PHP 4.0.6 installed on the server. Thanks.

« previous php.general (#110011) next »