Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

java php object

$a = array('foo' => 'bar');
$o = (object) $a;
var_dump($o instanceof stdClass); // bool(true)
var_dump($o->foo); // string(3) "bar"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #php #object
ADD COMMENT
Topic
Name
8+1 =