summaryrefslogtreecommitdiff
path: root/ext/standard/php_array.h
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-04-12 19:39:02 +0000
committerAndrei Zmievski <andrei@php.net>2000-04-12 19:39:02 +0000
commitc7100c4a1a39d6e1bd9227aa3cb78ec0e492c1fa (patch)
treec766ddd587326b928ca6a244b1e6e3c0704a54ed /ext/standard/php_array.h
parent5684953d590f53f9484360a5cdcbdb2c2cdfac96 (diff)
downloadphp-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.h2
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);