Answers for "object data how to convert in toarray in php"

PHP
1

object to array in php

$array = (array)$object;
Posted by: Guest on November-09-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 "object data how to convert in toarray in php"

Browse Popular Code Answers by Language