|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-04-18 14:41 UTC] onesong at gmail dot com
Description:
------------
the script below gives this wrror I couldnt understand where the syntax error is perhaps and most probably is a error within the compiling code to this php version
Parse error: syntax error, unexpected ';', expecting ')' in /srv/disk5/2354589/www/eternalglory.ga/index.php on line 7
Test script:
---------------
public $Themes = array(
"std" => array("cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array("margin: 0px 0px; font: 20px arial, sans-serif;"),
"transw" => array("cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array("margin: 0px 0px; font: 20px arial, sans-serif;"),
"matrix" => array("cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array("margin: 0px 0px; font: 20px arial, sans-serif;")
);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 13:00:02 2026 UTC |
if you only would write readable code you wild see the problem with an eye-blink of at least use a proper IDE which shows you the closing braces when you point the cursor to a opening one there are 7 ( and you managed to miss THREE closing ) for that i don't need the PHP parser, my IDE is crying <?php $Themes = array ( "std" => array ( "cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array ( "margin: 0px 0px; font: 20px arial, sans-serif;" ), "transw" => array ( "cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array ( "margin: 0px 0px; font: 20px arial, sans-serif;" ), "matrix" => array ( "cellspacing" => "0", "cellpadding" => "0", "tablestyle" => array ( "margin: 0px 0px; font: 20px arial, sans-serif;" ) );