How to pass data from class to page in php?
<p>I want to get member data from class that has been defined in other page.Suppose page 1 contains that class , how do i get that data in page 2.</p>

<p>Code looks something like this:</p>

<p><strong>page 1</strong></p>

<pre><code>class gamecard {
    function save_order($json_order){       
        if($payment_method=='Paypal') {                
            $vpcURL = $pp-&gt;buildCheckoutUrlTest($json_order);                                   
            }   
        return json_encode(array('order' =&gt; $order,
                                    'errID' =&gt; $errID, 
                                    'errMess' =&gt; $errMess
                                    ));         
    }
}
</code></pre>

<p><strong>page 2</strong></p>

<pre><code>print_r($vpcURL);    
</code></pre>

<p>Thank you.</p>