title: Access Object Variables with PHP
body: <p>What is the correct method to access the variables in an object in PHP? These don't seem to work.</p>
  
  <pre><code>$response = $wepay-&gt;request('checkout/create', array(
      'account_id'        =&gt; $account_id,
      'amount'            =&gt; '24.95',
      'short_description' =&gt; 'A brand new soccer ball',
      'type'              =&gt; 'GOODS',
      'mode'              =&gt; 'regular'
  
  
  ));
  
  // display the response
  print_r($response);
  //prints stdClass Object ( [checkout_id] =&gt; 466761864 [checkout_uri] =&gt; https://stage.wepay.com/api/checkout/466761864/6c60270d )
  
  echo $response[checkout_id]; //nothing
  echo $response-&gt;$checkout_id; //nothing
  var_dump(get_object_vars($response));  //nothing
  </code></pre>
  
  <p>I just need to get the [checkout_id] and the [checkout_uri] from $response. 
  I'm new to php objects, but from looking around, these were all ways people said to do it, they just aren't working in this case. Sorry if this is way simple.</p>