PHP foreach loops

PHOTO EMBED

Thu Aug 25 2022 17:54:57 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm

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

foreach($age as $x => $val) {
  echo "$x = $val<br>";
}
?>
content_copyCOPY

https://www.w3schools.com/php/php_looping_foreach.asp