Answers for "what does as do in foreach php"

PHP
9

php foreach

<?php
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");

foreach($age as $x => $val) {
  echo "$x = $val<br>";
}
?>
Posted by: Guest on April-07-2020

Code answers related to "what does as do in foreach php"

Browse Popular Code Answers by Language