I found this $css['misc/vertical-tabs.css']['data'] when reading Drupal book. I googled it but did not quite get the exact result.
I would like to know what does it mean "$var [] []"?
I found this $css['misc/vertical-tabs.css']['data'] when reading Drupal book. I googled it but did not quite get the exact result.
I would like to know what does it mean "$var [] []"?
$css is an array containing an element named 'misc/vertical-tabs.css' which is itself an array that contains an element named 'data'
Brackets define array keys.
Example: $array[key][key] and so forth. It gets more complicated than that past 2 levels, but this is a fairly simple paradigm:

well it's simply a 2-D array. For example, if you want to group certain things that assosiate to somethings together you might use this.
For example, $person['john']['age'] = 10; $person['john']['gender'] = 'male';....$person['john']['weight'] = '40kg'.