Get value of reference as array [closed]

1 day ago 1
ARTICLE AD BOX

I'm trying to find through some existing code and do some minor modifications.

When debugging, I get a variable $product which has the following content:

ref_product::__set_state(array( _currency_code => 'EUR', _language_codes => array ( 0 => 'de', ), _customer_id => 1, _data => array ( id => 5, default_category_id => 1, status => 1, keywords => array ( ), code => 'rd005', customer_id => 3, store => '["1","3"]', name => 'Purple toy', short_description => 'some short', description => '<p> some description </p>', technical_data => 'Colors Body: Purple Eyes: Black Beak: Orange Other Material: Plastic', head_title => '', meta_description => '', _data => null, ), ))

I haven't worked with references so far, but I think this is a reference.

I would like to read the array-field 'store' (inside _data).

How can I get that field and make it an array?

Read Entire Article