Answers for "can not convert object to array php"

PHP
1

object to array php

//It is verry  easy : just cast object to array
$array =  (array)$object;
Posted by: Guest on February-22-2021
1

convert object to array in php

// It will work Perfectly Fine.
$arr = json_decode(json_encode($obj), true);
Posted by: Guest on August-31-2021

Code answers related to "can not convert object to array php"

Browse Popular Code Answers by Language