Jump to content

fun with arrays :(


sandrob57

Recommended Posts

that is correct you only missed )

 

$chart [ 'chart_data' ] = array (array ( "chart", "112",  "223",  "334",  "432",  "111"));

print_r($chart [ 'chart_data' ])

 

output is:

 

Array ( [0] => Array ( [0] => chart [1] => 112 [2] => 223 [3] => 334 [4] => 432 [5] => 111 ) )

Link to comment
https://forums.phpfreaks.com/topic/63823-fun-with-arrays/#findComment-318085
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.