title: Magento 'Select Configurable Attributes' with PHP
body: <p>I have created new configurable products, and attached their simple products with PHP.</p>
  
  <p>Now when I edit any configurable product I see this screen:</p>
  
  <p><img src="https://i.stack.imgur.com/ht0fh.png" alt="Magento Select Configurable Attributes screen in admin"></p>
  
  <p>So in absence of any Magento documentation, what do I call in PHP to perform the same function as the screen above programatically?</p>
  
  <p>I have seen <code>$configurable_product-&gt;setConfigurableProductsData()</code> used in some examples, but don't think it is what I need.</p>