PHP square brackets syntax -


given code snippet:

$nodes[$record->nid]->group = $record->group; 

i not understand first part (to left of equals sign) means?

thanks.

$nodes array, , $record->nid index in array. code valid, $record->nid must either string or integer.

calling $nodes[$record->nid] return object, calling group on.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -