Return to php_array.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard |
1.1 ! misho 1: /* ! 2: +----------------------------------------------------------------------+ ! 3: | PHP Version 5 | ! 4: +----------------------------------------------------------------------+ ! 5: | Copyright (c) 1997-2012 The PHP Group | ! 6: +----------------------------------------------------------------------+ ! 7: | This source file is subject to version 3.01 of the PHP license, | ! 8: | that is bundled with this package in the file LICENSE, and is | ! 9: | available through the world-wide-web at the following url: | ! 10: | http://www.php.net/license/3_01.txt | ! 11: | If you did not receive a copy of the PHP license and are unable to | ! 12: | obtain it through the world-wide-web, please send a note to | ! 13: | license@php.net so we can mail you a copy immediately. | ! 14: +----------------------------------------------------------------------+ ! 15: | Authors: Andi Gutmans <andi@zend.com> | ! 16: | Zeev Suraski <zeev@zend.com> | ! 17: | Rasmus Lerdorf <rasmus@php.net> | ! 18: | Andrei Zmievski <andrei@php.net> | ! 19: +----------------------------------------------------------------------+ ! 20: */ ! 21: ! 22: /* $Id: php_array.h 321634 2012-01-01 13:15:04Z felipe $ */ ! 23: ! 24: #ifndef PHP_ARRAY_H ! 25: #define PHP_ARRAY_H ! 26: ! 27: PHP_MINIT_FUNCTION(array); ! 28: PHP_MSHUTDOWN_FUNCTION(array); ! 29: ! 30: PHP_FUNCTION(ksort); ! 31: PHP_FUNCTION(krsort); ! 32: PHP_FUNCTION(natsort); ! 33: PHP_FUNCTION(natcasesort); ! 34: PHP_FUNCTION(asort); ! 35: PHP_FUNCTION(arsort); ! 36: PHP_FUNCTION(sort); ! 37: PHP_FUNCTION(rsort); ! 38: PHP_FUNCTION(usort); ! 39: PHP_FUNCTION(uasort); ! 40: PHP_FUNCTION(uksort); ! 41: PHP_FUNCTION(array_walk); ! 42: PHP_FUNCTION(array_walk_recursive); ! 43: PHP_FUNCTION(count); ! 44: PHP_FUNCTION(end); ! 45: PHP_FUNCTION(prev); ! 46: PHP_FUNCTION(next); ! 47: PHP_FUNCTION(reset); ! 48: PHP_FUNCTION(current); ! 49: PHP_FUNCTION(key); ! 50: PHP_FUNCTION(min); ! 51: PHP_FUNCTION(max); ! 52: PHP_FUNCTION(in_array); ! 53: PHP_FUNCTION(array_search); ! 54: PHP_FUNCTION(extract); ! 55: PHP_FUNCTION(compact); ! 56: PHP_FUNCTION(array_fill); ! 57: PHP_FUNCTION(array_fill_keys); ! 58: PHP_FUNCTION(range); ! 59: PHP_FUNCTION(shuffle); ! 60: PHP_FUNCTION(array_multisort); ! 61: PHP_FUNCTION(array_push); ! 62: PHP_FUNCTION(array_pop); ! 63: PHP_FUNCTION(array_shift); ! 64: PHP_FUNCTION(array_unshift); ! 65: PHP_FUNCTION(array_splice); ! 66: PHP_FUNCTION(array_slice); ! 67: PHP_FUNCTION(array_merge); ! 68: PHP_FUNCTION(array_merge_recursive); ! 69: PHP_FUNCTION(array_replace); ! 70: PHP_FUNCTION(array_replace_recursive); ! 71: PHP_FUNCTION(array_keys); ! 72: PHP_FUNCTION(array_values); ! 73: PHP_FUNCTION(array_count_values); ! 74: PHP_FUNCTION(array_reverse); ! 75: PHP_FUNCTION(array_reduce); ! 76: PHP_FUNCTION(array_pad); ! 77: PHP_FUNCTION(array_flip); ! 78: PHP_FUNCTION(array_change_key_case); ! 79: PHP_FUNCTION(array_rand); ! 80: PHP_FUNCTION(array_unique); ! 81: PHP_FUNCTION(array_intersect); ! 82: PHP_FUNCTION(array_intersect_key); ! 83: PHP_FUNCTION(array_intersect_ukey); ! 84: PHP_FUNCTION(array_uintersect); ! 85: PHP_FUNCTION(array_intersect_assoc); ! 86: PHP_FUNCTION(array_uintersect_assoc); ! 87: PHP_FUNCTION(array_intersect_uassoc); ! 88: PHP_FUNCTION(array_uintersect_uassoc); ! 89: PHP_FUNCTION(array_diff); ! 90: PHP_FUNCTION(array_diff_key); ! 91: PHP_FUNCTION(array_diff_ukey); ! 92: PHP_FUNCTION(array_udiff); ! 93: PHP_FUNCTION(array_diff_assoc); ! 94: PHP_FUNCTION(array_udiff_assoc); ! 95: PHP_FUNCTION(array_diff_uassoc); ! 96: PHP_FUNCTION(array_udiff_uassoc); ! 97: PHP_FUNCTION(array_sum); ! 98: PHP_FUNCTION(array_product); ! 99: PHP_FUNCTION(array_filter); ! 100: PHP_FUNCTION(array_map); ! 101: PHP_FUNCTION(array_key_exists); ! 102: PHP_FUNCTION(array_chunk); ! 103: PHP_FUNCTION(array_combine); ! 104: ! 105: PHPAPI HashTable* php_splice(HashTable *, int, int, zval ***, int, HashTable **); ! 106: PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive TSRMLS_DC); ! 107: PHPAPI int php_array_replace_recursive(HashTable *dest, HashTable *src TSRMLS_DC); ! 108: PHPAPI int php_multisort_compare(const void *a, const void *b TSRMLS_DC); ! 109: ! 110: #define PHP_SORT_REGULAR 0 ! 111: #define PHP_SORT_NUMERIC 1 ! 112: #define PHP_SORT_STRING 2 ! 113: #define PHP_SORT_DESC 3 ! 114: #define PHP_SORT_ASC 4 ! 115: #define PHP_SORT_LOCALE_STRING 5 ! 116: ! 117: ZEND_BEGIN_MODULE_GLOBALS(array) ! 118: int *multisort_flags[2]; ! 119: int (*compare_func)(zval *result, zval *op1, zval *op2 TSRMLS_DC); ! 120: ZEND_END_MODULE_GLOBALS(array) ! 121: ! 122: #ifdef ZTS ! 123: #define ARRAYG(v) TSRMG(array_globals_id, zend_array_globals *, v) ! 124: #else ! 125: #define ARRAYG(v) (array_globals.v) ! 126: #endif ! 127: ! 128: #endif /* PHP_ARRAY_H */