php for each row in array code example
Example 1: for each php
foreach (array_expression as $value)
statement
foreach (array_expression as $key => $value)
statement
Example 2: for each php
<?php
foreach (array(1, 2, 3, 4) as &$value) {
$value = $value * 2;
}
?>