Jump to content

Just cant seem to get this syntax right...


mkosmosports

Recommended Posts

I have a multidimensional array..
$monthss = array("2digit"=>array("01","02","03","04","05","06","07","08","09","10","11","12",),
"shorttxt"=>array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"), "longtxt"=>array("January","February","March","April","May","June","July","August","September","October","November","December"));

Then I run a loop and I want to take out values from that array and place them as a variable. Ive got:

$var = $monthss[$2digit($trmon)]; as well as several other varieties...

Obviously this is not the way to use the md array.... :P

Any help appreciated..

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/33855-just-cant-seem-to-get-this-syntax-right/
Share on other sites

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.