Answers for "php make array new stdclass objects"

PHP
0

php object(stdclass) to array

$array = json_decode(json_encode($object), true);
Posted by: Guest on December-16-2020
0

object php

//object init
  $object = (object) [
    'propertyOne' => 'foo',
    'propertyTwo' => 42,
  ];
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language