sidelines / php-to-js

Automatically exported from code.google.com/p/php-to-js
0 stars 0 forks source link

Array conversion wrong #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<?php 

  $foo[] = 1;

?>

should be:

 var foo = [];
     foo.push( 1 );

Original issue reported on code.google.com by paulo.ca...@gmail.com on 6 Jul 2015 at 12:27