<?php $a = array( "Name" => "John", "Address" => "Street", "City" => "New York", "State" => "CA", "Zip" => "11111" ); echo "Name = " . $a["Name"] . "\n"; $o = (object)$a; echo "Address = $o->Address\n";?>