How to convert a PHP associative array to an object

I would like to know what is the most direct way in PHP to obtain an object from an associative array.

That is, I have an associative array in PHP like this:

$my_associative_array = ;

I would like to convert it to a regular object, which I can access using the PHP object operator.

$my_object->item

See also  Effect queues in jQuery
Loading Facebook Comments ...
Loading Disqus Comments ...