diff options
author | Andrei Zmievski <andrei@php.net> | 2000-04-12 19:39:02 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-04-12 19:39:02 +0000 |
commit | c7100c4a1a39d6e1bd9227aa3cb78ec0e492c1fa (patch) | |
tree | c766ddd587326b928ca6a244b1e6e3c0704a54ed /ext/standard/php_array.h | |
parent | 5684953d590f53f9484360a5cdcbdb2c2cdfac96 (diff) | |
download | php-git-c7100c4a1a39d6e1bd9227aa3cb78ec0e492c1fa.tar.gz |
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
@ <mbp@humbug.org.au>. See http://www.linuxcare.com.au/projects/natsort/
@ for more info on natural sorting. (Andrei)
Diffstat (limited to 'ext/standard/php_array.h')
-rw-r--r-- | ext/standard/php_array.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |