ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

Loop Through an Associative Array


<?php
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
 
foreach($age as $x=>$x_value) {
  echo "Key=" . $x . ", Value=" . $x_value;
  echo "
";
}
?>


'์›น ์ฝ”๋”ฉ > php' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Sort Array in Ascending Order - sort() (2)  (0) 2015.03.31
Sort Array in Ascending Order - sort() (1)  (0) 2015.03.31
PHP Associative Arrays  (0) 2015.03.31
Loop Through an Indexed Array  (0) 2015.03.31
Get The Length of an Array - The count() Function  (0) 2015.03.31
๋Œ“๊ธ€
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
ยซ   2025/02   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
๊ธ€ ๋ณด๊ด€ํ•จ