Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get all in object as array

$object = new StdClass;
$object->foo = 1;
$object->bar = 2;

var_dump( (array) $object );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #object #array
ADD COMMENT
Topic
Name
5+6 =