I have been getting a syntax error with a multi-dimensional array, and it is driving me nuts.
<?php
$gamedata = array (
array (
name => ("Age of Speed 2")
code => <<<'CODE'
<iframe src="http://www.miniclip.com/games/age-of-speed-2/en/webgame.php" frameborder="0" style="border:none;" width="590" height="443" scrolling="no"></iframe>
CODE
)
array (
name => ("Abbyss Defence")
code => <<<'CODE'
<a rel="nofollow" href="http://www.freegamesjungle.com/abbyss_defence.html" target="_blank">Abbyss Defence</a>
CODE
)
array (
name => ("Battle Buggy")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="640" height="480"><param name="movie" value="battlebuggy.swf"><param name="quality" value="high"><embed src="battlebuggy.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="480"></embed></object>
CODE
)
array (
name => ("Airwave")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400"><param name="movie" value="airwave.swf"><param name="quality" value="high"><embed src="airwave.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="400"></embed></object>
CODE
)
array (
name => ("The Seeker")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="500"><param name="movie" value="theseeker.swf"><param name="quality" value="high"><embed src="theseeker.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="500"></embed></object>
CODE
)
array (
name => ("Retro Assault")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="640" height="480"><param name="movie" value="retroassault.swf"><param name="quality" value="high"><embed src="retroassault.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="480"></embed></object>
CODE
)
array (
name => ("Final Fortress")
code => <<<'CODE'
<embed src="finalfortress.swf" type="application/x-shockwave-flash" width="640" height="480"></embed>
CODE
)
array (
name => ("Tank 2008")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400"><param name="movie" value="tank2.swf"><param name="quality" value="high"><embed src="tank2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed></object>
CODE
)
array (
name => ("Cyborg")
code => <<<'CODE'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="650" height="400"><param name="movie" value="Cyborg.swf"><param name="quality" value="high"><embed src="Cyborg.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="650" height="400"></embed></object>
CODE
)
array (
name => ("Alien Flight")
code => <<<'CODE'
<embed src="alienflight.swf" type="application/x-shockwave-flash" width="550" height="420"></embed>
CODE
)
)
?>
And this is the error message that comes up whenever it's used in an include statement:
Parse error: syntax error, unexpected T_STRING, expecting ')' in C:\Abyss Web Server\htdocs\swf\gamedata.php on line 5
Does anyone have any idea what might be causing this?