title: Get variations IDs from a variable product in Woocommerce 3
body: <p>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?  </p>
  
  <pre><code>  WC_Product_Variable Object ( [children:protected] =&gt; Array ( [0] =&gt; 344 [1] =&gt; 345 ) [visible_children:protected] =&gt; Array ( [0] =&gt; 344 [1] =&gt; 345 ) 
  </code></pre>