php string array loop code example
Example 1: php ofreach
<?php
$a = array(1, 2, 3, 17);
foreach ($a as $index => $v) {
echo "Current value of \$a: $v.\n";
}
?>
Example 2: php loop through array
foreach (array_expression as $value)
statement
foreach (array_expression as $key => $value)
statement