hi,
what does this construct mean in PHP ? It is storing a variable called "function" with his String value in an array ?
array('function' => 'theme_select_as_checkboxes')
thanks
up vote
0
down vote
favorite
|
hi, what does this construct mean in PHP ? It is storing a variable called "function" with his String value in an array ?
thanks
|
||
|
up vote
1
down vote
accepted
|
Seems like declaring an associative array. With sucha an array, you can retrieve the content of the array this way :
No magic in here ! ;) |
||
|
up vote
4
down vote
|
its just an associative array and unless some context is given, doesnt mean anything special! |
||
|
up vote
0
down vote
|
Appears to be a function/method name that can be called at a later time. Other than the data, it looks to be just a standard array. You may be interested in this question as well: How to call PHP function from string stored in a Variable. |
||
|
up vote
0
down vote
|
this is not a special structure. http://en.wikipedia.org/wiki/Associative_array http://www.bellaonline.com/articles/art31316.asp |
||
|