Re: Sort flags

From: Date: Sun, 14 Dec 2003 19:18:27 +0000
Subject: Re: Sort flags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172691@lists.php.net to get a copy of this message
Jake McHenry wrote:
Hi all, quick question. Whenever I try putting any flags with the any of the sort functions, I get this error: Warning: Wrong parameter count for natsort() in /var/www/secure/travelrequest/handler.php on line 950 My sort call looks like this: natsort($array, "SORT_STRING");
natsort() only takes one parameter. The sort flags are used with sort() and are constants, so they shoudln't have double quotes around them. sort($array,SORT_STRING); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#172691) next »