php.js
php.js copied to clipboard
casting arrays to objects unsupported
php > $b = (object)array('name' => 'Pooh', 'age' => 24);
php > echo $b->name . PHP_EOL;
Pooh
php > print_r($b);
stdClass Object
(
[name] => Pooh
[age] => 24
)
In php.js, I get “Parse error: this.Node_Expr_Cast_Object is not a function in /console.htm on line undefined”.