Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>";
  }
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #key #php
ADD COMMENT
Topic
Name
3+9 =