Answers for "php foreach value in a string"

PHP
1

loop through values of hash php

foreach ($array as $key => $val) {
    print "$key = $val\n";
}
Posted by: Guest on February-16-2020
1

php ofreach

<?php

$a = array(1, 2, 3, 17);

foreach ($a as $index => $v) {
    echo "Current value of \$a: $v.\n";
}

?>
Posted by: Guest on April-23-2020

Browse Popular Code Answers by Language