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>";
  }
?>
 
PREVIOUS NEXT
Tagged: #array #key #php
ADD COMMENT
Topic
Name
1+3 =