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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to