niklasvh / php.js

PHP to JavaScript converter and VM written in JavaScript
http://phpjs.hertzen.com
MIT License
860 stars 115 forks source link

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

Open adamjimenez opened 10 years ago

adamjimenez commented 10 years ago

echo with multiple parameters causes a syntax error

echo('foo', 'bar');

Syntax error, unexpected ','

baconbrad commented 8 years ago

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

adamjimenez commented 8 years ago

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