php.js icon indicating copy to clipboard operation
php.js copied to clipboard

echo('foo', 'bar') throws syntax error

Open adamjimenez opened this issue 11 years ago • 2 comments

echo with multiple parameters causes a syntax error

echo('foo', 'bar');

Syntax error, unexpected ','

adamjimenez avatar Aug 21 '14 12:08 adamjimenez

This is exactly how PHP handles an echo with multiple parameters.

baconbrad avatar Dec 16 '15 22:12 baconbrad

I think it's a PHP7 thing. The manual states: void echo ( string $arg1 [, string $... ] )

adamjimenez avatar Oct 02 '16 18:10 adamjimenez