Answers for "php 8 object to array"

PHP
3

object to array php

$array = (array) $yourObject;
Posted by: Guest on September-18-2020
0

array to object php

$object = json_decode(json_encode($array), FALSE);
Posted by: Guest on January-22-2021

Browse Popular Code Answers by Language