Crimes against entity_metadata_wrapper?
I'm having a problem getting to some data with the entity wrapper and found myself using:
$e_wrap->commerce_price->value()['original']['amount']
That doesn't feel much better than going through the whole ['und'] array.
How else could I access this?
Comments
Note: function array dereferencing like this will only work in PHP version 5.4 and above.
http://php.net/manual/en/migration54.new-features.php