Jump to content

how to convet into 2 dimension array


david212

Recommended Posts

here it is what i created:

 

<?php

$arr  = array("1"=>"Jan", "2"=>"Feb", "3"=>"Mar","4"=>"Apr","5" => "May","6" => "Jun","7" => "Jul","8" => "Aug","9" => "Sept");


echo "<pre>";

foreach($arr as $month=>$item)
{
  echo "$month: $item\n";
}
echo "</pre>";

?>

 

i want to list all months using 2 dimension array

 

Thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.