It is necessary to get the value from the array with the key [0], but the array is in the object. How can I put it in a variable?
WC_Product_Variable Object ( [children:protected] => Array ( [0] => 344 [1] => 345 ) [visible_children:protected] => Array ( [0] => 344 [1] => 345 )