Answers for "javascript object in php"

PHP
-1

java php object

$a = array('foo' => 'bar');
$o = (object) $a;
var_dump($o instanceof stdClass); // bool(true)
var_dump($o->foo); // string(3) "bar"
Posted by: Guest on May-08-2020

Code answers related to "javascript object in php"

Browse Popular Code Answers by Language