Syntax Error in line 238

Hi Guys,

In dreamweaver I have a notice at the top of every page that references a specific php. the notice is “There is a sntax error in line 238 code hinting may not work untill you fix the error”

The script seems to be working fine but I’d love to get rid of this error.

These are the last few lines of the script, I’m putting line 238 in bold. If anyone has an idea on how to fix this I would really appreciate it.

tooltip: {
formatter: function() {
return '$ ’ + this.y;
series: [<?= implode(‘,’, $series) ?>]
navigation: {
menuItemStyle: {
fontSize: ‘10px’

try instead

<?php echo implode(‘,’,$series); ?>

While the original is not strictly a syntax error, short tag echoing are going the way of the dodo.

That seemed to work, thank you! Could you let me know what the difference is in the coding, just a newer version of the syntax?

Nope. The ; at the end is what got rid of the notice. Standard php stuff.

And <?= is not going anywhere. In fact, for php 5.4 you will be able to use it regardless of the short tags setting.

PHP Short open tags vs long open tags | Chris Cross

You’re right. <?= (sadly) is being activated without the setting, presumably for legacy code and lazy people. <? is still effected by the setting, and is being phased out in PHP 6.

I still find it causes more problems than it helps, but that’s me.