Link to home
Start Free TrialLog in
Avatar of Lazaro ORTEGA
Lazaro ORTEGA

asked on

PHP Parse error: syntax error, unexpected '['

Hello,

I am getting this error: Parse error: syntax error, unexpected '[' in /home/pe/fieldtabproductsisotope.php on line 682

foreach ($tabIds as $key => $tabId){
     $tab_contents[$tabId['id_fieldtabproductsisotope']] = $this->_getTabContent($tabId['id_fieldtabproductsisotope'])[0];
     $banner_contents[$tabId['id_fieldtabproductsisotope']] = $this->_getTabContent($tabId['id_fieldtabproductsisotope'])[1];
}

Where is the syntax error here, I really do not find it.

Thank you for any help!
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial