From c7100c4a1a39d6e1bd9227aa3cb78ec0e492c1fa Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Wed, 12 Apr 2000 19:39:02 +0000 Subject: Added natural comparison/sorting routines using code from Martin Pool. @- Added natural comparison/sorting routines strnatcmp(), strnatcasecmp(), @ natsort(), and natcasesort(). These are useful for comparing and sorting @ strings that contain numbers. Based on the code from Martin Pool @ . See http://www.linuxcare.com.au/projects/natsort/ @ for more info on natural sorting. (Andrei) --- ext/standard/php_array.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/standard/php_array.h') diff --git a/ext/standard/php_array.h b/ext/standard/php_array.h index 46f67b38bf..033953839a 100644 --- a/ext/standard/php_array.h +++ b/ext/standard/php_array.h @@ -29,6 +29,8 @@ PHP_MSHUTDOWN_FUNCTION(array); PHP_FUNCTION(ksort); PHP_FUNCTION(krsort); +PHP_FUNCTION(natsort); +PHP_FUNCTION(natcasesort); PHP_FUNCTION(asort); PHP_FUNCTION(arsort); PHP_FUNCTION(sort); -- cgit v1.2.1