Answers for "php add property to object"

PHP
0

php add property to object

$foo = (array)$foo;
$foo['bar'] = '1234';
$foo = (object)$foo;
Posted by: Guest on June-08-2021

Code answers related to "php add property to object"

Browse Popular Code Answers by Language