I have started to understand the 2D array and multi-dimensional array, some reference books mentioned it has different ways to declare them. Which methods will be declare the array more easier and easy to understand?
method 1:
$pgmCode = array
(
"Item1"=>array("...","..."=>array("..."=>1)),
......
)
Or method2:
$A['ABC']['...'] = '3';
$A['...']['...']['...'] = '2';
Furthermore, if I will build a database and calling the data as array store, which method will be preferred to use?
Thanks.