Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/PHP-7.0/tests/lang/
H A DforeachLoop.013.phpt20 foreach ($a as $k=>&$v) {
21 echo " iteration $counter: \$k=$k; \$v=$v\n";
50 $transform = 'unset($a[$k]);';
81 iteration 0: $k=0; $v=v.0
95 iteration 0: $k=0; $v=v.0
113 iteration 0: $k=0; $v=v.0
114 iteration 1: $k=1; $v=v.1
134 iteration 0: $k=0; $v=v.0
135 iteration 1: $k=1; $v=v.1
154 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.015.phpt22 foreach ($a as $k=>&$v) {
23 echo " iteration $counter: \$k=$k; \$v=$v\n";
52 $transform = 'unset($a[$k]);';
83 iteration 0: $k=0; $v=v.0
97 iteration 0: $k=0; $v=v.0
115 iteration 0: $k=0; $v=v.0
116 iteration 1: $k=1; $v=v.1
136 iteration 0: $k=0; $v=v.0
137 iteration 1: $k=1; $v=v.1
156 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.012.phpt20 foreach ($a as $k=>$v) {
21 echo " iteration $counter: \$k=$k; \$v=$v\n";
50 $transform = 'unset($a[$k]);';
81 iteration 0: $k=0; $v=v.0
95 iteration 0: $k=0; $v=v.0
96 iteration 1: $k=1; $v=v.1
112 iteration 0: $k=0; $v=v.0
113 iteration 1: $k=1; $v=v.1
114 iteration 2: $k=2; $v=v.2
132 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.014.phpt22 foreach ($a as $k=>$v) {
23 echo " iteration $counter: \$k=$k; \$v=$v\n";
52 $transform = 'unset($a[$k]);';
82 iteration 0: $k=0; $v=v.0
96 iteration 0: $k=0; $v=v.0
97 iteration 1: $k=1; $v=v.1
113 iteration 0: $k=0; $v=v.0
114 iteration 1: $k=1; $v=v.1
115 iteration 2: $k=2; $v=v.2
133 iteration 0: $k=0; $v=v.0
[all …]
/PHP-7.0/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_2004.c136 int k; in mbfl_filt_conv_jis2004_wchar() local
332 for (k = 0; k < jisx0213_p2_ofst_len; k++) { in mbfl_filt_conv_jis2004_wchar()
337 k = k - (jisx0213_p2_ofst[k]-1); in mbfl_filt_conv_jis2004_wchar()
486 int k; in mbfl_filt_conv_wchar_jis2004() local
498 for (k=0;k<jisx0213_u2_tbl_len;k++) { in mbfl_filt_conv_wchar_jis2004()
517 k++; in mbfl_filt_conv_wchar_jis2004()
552 for (k=0; k < uni2jis_tbl_len ;k++) { in mbfl_filt_conv_wchar_jis2004()
554 s1 = uni2jis_tbl[k][c-uni2jis_tbl_range[k][0]]; in mbfl_filt_conv_wchar_jis2004()
563 if (k >= 0) { in mbfl_filt_conv_wchar_jis2004()
571 if (k >= 0) { in mbfl_filt_conv_wchar_jis2004()
[all …]
H A Dmbfilter_big5.c147 int k; in mbfl_filt_conv_big5_wchar() local
195 for (k = 0; k < sizeof(cp950_pua_tbl)/(sizeof(unsigned short)*4); k++) { in mbfl_filt_conv_big5_wchar()
196 if (c2 >= cp950_pua_tbl[k][2] && c2 <= cp950_pua_tbl[k][3]) { in mbfl_filt_conv_big5_wchar()
203 + cp950_pua_tbl[k][0]; in mbfl_filt_conv_big5_wchar()
205 w = c2 - cp950_pua_tbl[k][2] + cp950_pua_tbl[k][0]; in mbfl_filt_conv_big5_wchar()
240 int k; in mbfl_filt_conv_wchar_big5() local
262 for (k = 0; k < sizeof(cp950_pua_tbl)/(sizeof(unsigned short)*4); k++) { in mbfl_filt_conv_wchar_big5()
263 if (c <= cp950_pua_tbl[k][1]) { in mbfl_filt_conv_wchar_big5()
267 c1 = c - cp950_pua_tbl[k][0]; in mbfl_filt_conv_wchar_big5()
269 c2 = cp950_pua_tbl[k][2] >> 8; in mbfl_filt_conv_wchar_big5()
[all …]
H A Dmbfilter_gb18030.c89 k2 = k; in mbfl_bisec_srch()
91 k1 = k + 1; in mbfl_bisec_srch()
111 k2 = k; in mbfl_bisec_srch2()
113 k1 = k; in mbfl_bisec_srch2()
115 return k; in mbfl_bisec_srch2()
127 int k; in mbfl_filt_conv_gb18030_wchar() local
177 for (k = 0; k < mbfl_gb18030_pua_tbl_max; k++) { in mbfl_filt_conv_gb18030_wchar()
247 if (k<0) { in mbfl_filt_conv_gb18030_wchar()
287 int k, k1, k2; in mbfl_filt_conv_wchar_gb18030() local
361 k2 = k; in mbfl_filt_conv_wchar_gb18030()
[all …]
H A Dmbfilter_cp936.c105 int k; in mbfl_filt_conv_cp936_wchar() local
143 for (k = 0; k < mbfl_cp936_pua_tbl_max; k++) { in mbfl_filt_conv_cp936_wchar()
145 c2 <= mbfl_cp936_pua_tbl[k][2] + in mbfl_filt_conv_cp936_wchar()
146 mbfl_cp936_pua_tbl[k][1] - mbfl_cp936_pua_tbl[k][0]) { in mbfl_filt_conv_cp936_wchar()
147 w = c2 - mbfl_cp936_pua_tbl[k][2] + mbfl_cp936_pua_tbl[k][0]; in mbfl_filt_conv_cp936_wchar()
193 int k, k1, k2; in mbfl_filt_conv_wchar_cp936() local
231 k = (k1 + k2) >> 1; in mbfl_filt_conv_wchar_cp936()
232 if (c < mbfl_cp936_pua_tbl[k][0]) { in mbfl_filt_conv_wchar_cp936()
233 k2 = k; in mbfl_filt_conv_wchar_cp936()
235 k1 = k + 1; in mbfl_filt_conv_wchar_cp936()
[all …]
/PHP-7.0/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_metadata.phpt98 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na…
102 …$k, gettype($info->orgname), $info->orgname, gettype($fields['meta'][$k]->orgname), $fields['meta'…
106 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-…
110 …$k, gettype($info->orgtable), $info->orgtable, gettype($fields['meta'][$k]->orgtable), $fields['me…
114 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def);
122 …$k, gettype($info->length), $info->length, gettype($fields['meta'][$k]->length), $fields['meta'][$
126 …$k, gettype($info->charsetnr), $info->charsetnr, gettype($fields['meta'][$k]->charsetnr), $fields[…
130 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-…
134 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty…
142 $fields['all_res'][$k]->max_length = $fields['all_meta'][$k]->max_length;
[all …]
/PHP-7.0/Zend/tests/
H A Dbug64555.phpt13 foreach ($a as $k => $v) {
14 if ($k == 'unsetme') {
15 echo "Unsetting: $k\n";
16 unset($a[$k]);
17 } else if ($k == 'keepme') {
18 echo "Changing: $k\n";
19 $a[$k] = 42;
H A Dbug37046.phpt10 foreach (s() as $k => $function) {
11 echo "op1 $k\n";
12 if ($k == 0) {
13 foreach (s() as $k => $function) {
14 echo "op2 $k\n";
H A Dbug39449.phpt10 public function __set($k, $v) {
11 $this->keys[$k] = $v;
21 foreach ($a->arr as $k => $v) {
22 echo "$k => $v\n";
27 foreach ($a->arr as $k => $v) {
28 echo "$k => $v\n";
/PHP-7.0/ext/spl/tests/
H A Drecursive_tree_iterator_001.phpt29 foreach(new RecursiveTreeIterator($it) as $k => $v) {
30 echo "[$k] => $v\n";
33 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) {
34 echo "[$k] => $v\n";
37 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) {
38 echo "[$k] => $v\n";
41 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) {
42 echo "[$k] => $v\n";
45 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
46 echo "[$k] => $v\n";
H A Drecursive_tree_iterator_006.phpt39 foreach(new RecursiveTreeIterator($it) as $k => $v) {
40 echo "[$k] => $v\n";
43 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) {
44 echo "[$k] => $v\n";
47 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) {
48 echo "[$k] => $v\n";
51 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) {
52 echo "[$k] => $v\n";
55 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
56 echo "[$k] => $v\n";
H A Ddllist_003.phpt12 foreach ($dll as $k => $v) {
13 echo "$k=>$v\n";
17 foreach ($dll as $k => $v) {
18 echo "$k=>$v\n";
23 foreach ($dll as $k => $v) {
24 echo "$k=>$v\n";
H A Ddllist_002.phpt13 foreach($dll as $k=>$v) {
14 echo "$k=>$v\n";
23 foreach($dll as $k=>$v) {
24 echo "$k=>$v\n";
30 foreach($dll2 as $k=>$v) {
31 echo "$k=>$v\n";
H A Dpqueue_001.phpt18 foreach ($pq as $k=>$v) {
19 echo "$k=>".print_r($v, 1)."\n";
31 foreach ($pq1 as $k=>$v) {
32 echo "$k=>".print_r($v, 1)."\n";
44 foreach ($pq2 as $k=>$v) {
45 echo "$k=>".print_r($v, 1)."\n";
57 foreach ($pq3 as $k=>$v) {
58 echo "$k=>".print_r($v, 1)."\n";
/PHP-7.0/ext/standard/html_tables/
H A Dhtml_table_gen.php261 foreach ($a as $k => $v) {
347 foreach ($mappy as $k => $v) {
471 foreach ($multicp_rows as $k => $v) {
537 for ($k = 0; $k < 64; $k++) { variable
541 if (isset($mstable[$i][$k][$l])) {
607 for ($k = 0; $k < 64; $k++) { variable
608 if (isset($mstable[$i][$k]))
614 for ($k = 0; $k < 64; $k++) { variable
615 if ($k == 0) echo "\t";
616 elseif ($k % 4 == 0) echo "\n\t";
[all …]
/PHP-7.0/Zend/
H A Dzend_strtod.c581 (k) int k; in Balloc() argument
619 rv->k = k;
873 k = a->k;
962 (b, k) Bigint *b; int k; in pow5mult() argument
1019 (b, k) Bigint *b; int k; in lshift() argument
1283 d1 = z << k | y >> (32 - k);
1301 d0 = Exp_1 | y << k + 16 | z << k | w >> 16 - k;
1303 d1 = w << k + 16 | y << k;
1475 k = -k;
1484 k = -k;
[all …]
/PHP-7.0/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c119 if (k < 0x80) { in utf32_utf8()
120 buf[0] = k; in utf32_utf8()
122 } else if (k < 0x800) { in utf32_utf8()
123 buf[0] = 0xc0 | (k >> 6); in utf32_utf8()
126 } else if (k < 0x10000) { in utf32_utf8()
127 buf[0] = 0xe0 | (k >> 12); in utf32_utf8()
131 } else if (k < 0x200000) { in utf32_utf8()
132 buf[0] = 0xf0 | (k >> 18); in utf32_utf8()
137 } else if (k < 0x4000000) { in utf32_utf8()
138 buf[0] = 0xf8 | (k >> 24); in utf32_utf8()
[all …]
/PHP-7.0/ext/standard/
H A Dquot_print.c207 size_t i = 0, j = 0, k; in PHP_FUNCTION() local
231 k = 1; in PHP_FUNCTION()
232 while (str_in[i + k] && ((str_in[i + k] == 32) || (str_in[i + k] == 9))) { in PHP_FUNCTION()
234 k++; in PHP_FUNCTION()
236 if (!str_in[i + k]) { in PHP_FUNCTION()
238 i += k; in PHP_FUNCTION()
240 else if ((str_in[i + k] == 13) && (str_in[i + k + 1] == 10)) { in PHP_FUNCTION()
242 i += k + 2; in PHP_FUNCTION()
244 else if ((str_in[i + k] == 13) || (str_in[i + k] == 10)) { in PHP_FUNCTION()
246 i += k + 1; in PHP_FUNCTION()
/PHP-7.0/tests/func/
H A D003.phpt20 for ($k=$i; $k<=$j; $k++) {
21 echo "$k\n";
56 for ($k=0; $k<10; $k++) {
79 for ($k=0; $k<10; $k++) {
92 for ($k=$i ; $k<=$j ; $k++) {
93 if ($k >5) continue;
94 echo "$k\n";
/PHP-7.0/ext/standard/tests/array/
H A Dbug21918.phpt9 foreach($a as $k => $v) {
10 var_dump($k);
18 foreach($b as $k => $v) {
19 var_dump($k);
26 foreach($c as $k => $v) {
27 var_dump($k);
/PHP-7.0/tests/classes/
H A Dvisibility_005.phpt14 foreach($this as $k=>$v) {
15 echo "$k=>$v\n";
29 foreach($o as $k=>$v) {
30 echo "$k=>$v\n";
38 foreach($o as $k=>$v) {
39 echo "$k=>$v\n";
/PHP-7.0/ext/standard/tests/strings/
H A Dhtmlentities_html4.phpt5 function utf32_utf8($k) {
6 if ($k < 0x80) {
7 $retval = pack('C', $k);
8 } else if ($k < 0x800) {
10 0xc0 | ($k >> 6),
11 0x80 | ($k & 0x3f));
12 } else if ($k < 0x10000) {
14 0xe0 | ($k >> 12),
17 } else if ($k < 0x200000) {
19 0xf0 | ($k >> 18),
[all …]

Completed in 120 milliseconds

12345678910>>...14