Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php foreach array

$arr = array(1, 2, 3);
foreach ($arr as $key => $value) {
    echo "{$key} => {$value} ";
}
 
PREVIOUS NEXT
Tagged: #php #foreach #array
ADD COMMENT
Topic
Name
1+9 =