Answers for "java php object"

-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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language