Answers for "how to get array name in php"

PHP
3

array key value php

<?php
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
foreach($age as $x=>$x_value)
  {
  echo "Key=" . $x . ", Value=" . $x_value;
  echo "<br>";
  }
?>
Posted by: Guest on March-12-2020

Code answers related to "how to get array name in php"

Browse Popular Code Answers by Language