Home
last modified time | relevance | path

Searched refs:key (Results 76 – 100 of 1144) sorted by relevance

12345678910>>...46

/PHP-5.5/tests/classes/
H A Diterators_006.phpt22 return $this->key !== NULL;
25 function key() {
26 return $this->key;
34 list($this->key, $this->current) = each($this->array);
35 // list($key, $current) = each($this->array);
36 // $this->key = $key;
57 #var_dump($array->key());
/PHP-5.5/ext/standard/tests/array/
H A Darray_walk_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
84 key : int(0)
86 key : int(1)
88 key : int(2)
[all …]
H A Darray_walk_recursive_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
86 key : int(0)
88 key : int(1)
90 key : int(1)
[all …]
H A Deach_variation2.phpt110 foreach($inputs as $key => $input) {
132 ["key"]=>
144 ["key"]=>
156 ["key"]=>
168 ["key"]=>
180 ["key"]=>
195 ["key"]=>
209 ["key"]=>
221 ["key"]=>
233 ["key"]=>
[all …]
H A Darray_walk_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
48 /* Prototype : for_mixed( mixed $value, mixed $key)
50 * $key - keys in given input array
53 function for_mixed($value, $key)
[all …]
H A Darray_walk_recursive_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
50 * $key - keys in given input array
53 function for_mixed($value, $key)
57 var_dump($key);
[all …]
H A Dkey_variation2.phpt2 Test key() function : usage variations
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
11 * Pass arrays where keys are different data types as $array_arg to key() to test behaviour
14 echo "*** Testing key() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of key()
97 foreach($inputs as $key => $input) {
98 echo "\n-- Iteration $iterator : $key data --\n";
99 while (key($input) !== NULL) {
100 var_dump(key($input));
[all …]
H A Darray_key_exists_object2.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
33 echo "\$key = var1:\n";
35 echo "\$key = var2:\n";
37 echo "\$key = var3:\n";
44 echo "\$key = var3:\n";
56 $key = var1:
58 $key = var2:
60 $key = var3:
73 $key = var3:
H A Darray_flip_variation5.phpt6 * Description: Return array with key <-> value flipped
16 // array with numeric key repeatition
20 // array with string key repeatition
21 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR");
24 // array with bool key repeatition
28 // array with null key repeatition
54 string(3) "key"
/PHP-5.5/ext/dba/tests/
H A Ddba_handler.inc29 echo dba_exists("key$i", $db_file) ? "Y" : "N";
49 if (dba_insert("key number 6", "The 6th value", $db_writer)) {
50 echo '"key number 6" written' . "\n";
52 echo 'Failed to write "key number 6"' . "\n";
55 echo '"key number 6" written 2nd time' . "\n";
57 echo 'Failed to write "key number 6" 2nd time' . "\n";
62 echo dba_fetch("key number 6", $db_writer)."\n";
69 $key = dba_firstkey($db_file);
71 while($key) {
72 $res[$key] = dba_fetch($key, $db_file);
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dfile_variation.phpt37 $key = "SEARCH_KEY";
38 fwrite( $file_handle, (binary)"The key string to be searched is SEARCH_KEY\nLine without key string…
41 echo "File contents in array form Before replacement of the key\n";
46 if( !strstr( $line, $key ) )
49 echo "File contents in array form After replacement of the key\n";
141 File contents in array form Before replacement of the key
144 string(44) "The key string to be searched is SEARCH_KEY
147 string(24) "Line without key string
150 string(43) "The key string to be searched is SEARCH_KEY"
152 File contents in array form After replacement of the key
[all …]
/PHP-5.5/ext/openssl/tests/
H A D019.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
22 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
25 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
H A D009.phpt11 $fp = fopen(dirname(__FILE__) . "/private.key","r");
16 $key = "file://" . dirname(__FILE__) . "/private.key";
18 var_dump(openssl_x509_check_private_key($cert, $key));
19 var_dump(openssl_x509_check_private_key("", $key));
/PHP-5.5/ext/spl/tests/
H A Diterator_011.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Diterator_018.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Dfixedarray_003.phpt11 public function key() {
12 echo "A::key\n";
13 return parent::key();
62 A::key
67 A::key
72 A::key
77 A::key
82 A::key
H A Dbug61527.phpt10 var_dump($ai->key());
17 $ao2->offsetUnset($ai2->key());
21 $ao2->offsetUnset($ai2->key());
22 var_dump($ai2->key());
25 $ao2->offsetUnset($ai2->key());
29 var_dump($ai2->key());
34 var_dump($ai2->key());
42 var_dump($ai2->key());
59 $ao4->offsetUnset($ai4->key());
62 $ao4->offsetUnset($ai4->key());
[all …]
H A Diterator_004.phpt30 public function key()
93 NumericArrayIterator::key
98 NumericArrayIterator::key
103 NumericArrayIterator::key
112 NumericArrayIterator::key
117 NumericArrayIterator::key
122 NumericArrayIterator::key
130 NumericArrayIterator::key
135 NumericArrayIterator::key
140 NumericArrayIterator::key
H A DarrayObject_setIteratorClass_error1.phpt8 foreach($ao as $key=>$value) {
9 echo " $key=>$value\n";
18 foreach($ao as $key=>$value) {
19 echo " $key=>$value\n";
28 foreach($ao as $key=>$value) {
29 echo " $key=>$value\n";
37 foreach($ao as $key=>$value) {
38 echo " $key=>$value\n";
H A DSplFixedArray_key_param.phpt2 SplFixedArray::key() with a parameter passed. This is a bug and an error should be called.
15 echo $array->key( array("this","should","not","execute") );
20 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
22 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
24 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
/PHP-5.5/ext/session/
H A Dmod_mm.c54 char key[1]; /* inline key */ member
121 keylen = strlen(key); in ps_sd_new()
131 hv = ps_sd_hash(key, keylen); in ps_sd_new()
139 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
161 slot = ps_sd_hash(sd->key, strlen(sd->key)) & data->hash_max; in ps_sd_destroy()
187 hv = ps_sd_hash(key, strlen(key)); in ps_sd_lookup()
191 if (ret->hv == hv && !strcmp(ret->key, key)) { in ps_sd_lookup()
215 if (!key) { in ps_mm_key_exists()
218 sd = ps_sd_lookup(data, key, 0); in ps_mm_key_exists()
362 if (key) { in PS_READ_FUNC()
[all …]
/PHP-5.5/tests/lang/
H A Dforeach_with_references_001.phpt8 foreach($arr as $key => $val) {
9 $val = $key;
14 foreach($arr as $key => &$val) {
15 $val = $key;
H A DforeachLoopIteratorAggregate.001.phpt33 public function key() {
69 public function key() {
170 --> EnglishMealIterator::key (0)
175 --> EnglishMealIterator::key (1)
180 --> EnglishMealIterator::key (2)
189 --> FrenchMealIterator::key (0)
194 --> FrenchMealIterator::key (1)
199 --> FrenchMealIterator::key (2)
204 --> FrenchMealIterator::key (3)
216 --> EnglishMealIterator::key (0)
[all …]
/PHP-5.5/ext/opcache/
H A Dzend_accelerator_hash.h49 char *key; member
69 char *key,
76 char *key,
81 char *key,
86 char *key,
/PHP-5.5/ext/sysvsem/
H A Dsysvsem.c61 ZEND_ARG_INFO(0, key)
190 long key, max_acquire = 1, perm = 0666, auto_release = 1; in PHP_FUNCTION() local
196 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lll", &key, &max_acquire, &perm… in PHP_FUNCTION()
206 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
208 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
240 …L TSRMLS_CC, E_WARNING, "failed acquiring SYSVSEM_SETVAL for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
248 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
259 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
264 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
269 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
[all …]

Completed in 64 milliseconds

12345678910>>...46