Sub:

foreach

두 가지가 있음.

일반적인것인듯
foreach (array_expression as $value) {
 statement
}

이건 associative array에 해당.
foreach (전체associative_array_name as $key_즉_각각item => $value) {
 statement
}
Retrieved from http://www.red-ruby.com/wiki/wiki.php/PHP_language
last modified 2023-09-07 06:03:50