Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php add property to object

$foo = (array)$foo;
$foo['bar'] = '1234';
$foo = (object)$foo;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #add #property #object
ADD COMMENT
Topic
Name
2+8 =