$object -> $array
Posted: Fri Jun 17, 2005 11:05 am
How do I turn an object into an array?
or
How do I make an array that contains the contents of an object?
or
How do I make an array that contains the contents of an object?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$object = new MyObject;
$object_array = (array) $object;
?>