Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/rekall/krisgale.com/wp-includes/formatting.php on line 74

here’s how to effectively convert it to an object (stdClass) and use the object property syntax instead…

$a = array( 'one' => array( 'number' => 1, 'ordinal' => '1st' ) );
echo $a[ 'one' ][ 'number' ] . "\n";
$o = json_decode( json_encode( $a ) );
echo $o->one->ordinal . "\n";