摘要:
1 static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_type) /* {{{ */ 2 { 3 uint idx; 4 Bucket *p; 5 int argc, i; 6 zval *args; 7 int (... 阅读全文
摘要:
1 PHP_FUNCTION(array_diff) 2 { 3 zval *args; 4 int argc, i; 5 uint32_t num; 6 HashTable exclude; 7 zval *value; 8 zend_string *str, *key; 9 zend_long idx; 10 ... 阅读全文
摘要:
1 PHP_FUNCTION(array_count_values) 2 { 3 zval *input, /* Input array */ 4 *entry, /* An entry in the input array */ 5 *tmp; 6 HashTable *myht; ... 阅读全文
摘要:
1 PHP_FUNCTION(array_combine) 2 { 3 HashTable *values, *keys; 4 uint32_t pos_values = 0; 5 zval *entry_keys, *entry_values; 6 int num_keys, num_values; 7 8 // 创建一个数组,用一个数... 阅读全文
摘要:
1 PHP_FUNCTION(array_column) 2 { 3 zval *zcolumn = NULL, *zkey = NULL, *data; 4 HashTable *arr_hash; 5 zval *zcolval = NULL, *zkeyval = NULL, rvc, rvk; 6 7 // !如果接收了一个php语言里的n... 阅读全文