Answers for "std class object to array php"

PHP
6

php object to array

//This works best
$array = json_decode(json_encode($object), true);
Posted by: Guest on January-28-2021
0

php object(stdclass) to array

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

Browse Popular Code Answers by Language