proper way of using output of one class in another class
<p>I am using the following code to produce an array:</p>

<pre><code>// Create new customer object
$customers = new customers;

// Array of user ids 
$customers-&gt;ids = array(34,23,78);  

// Process customers
$customers-&gt;processCustomers();
</code></pre>

<p>The above code will output an array full of needed user information based on the users passed to it.</p>

<p>Now I need to take further action to this new customer array in the following code:</p>

<pre><code>// Create new parsing object
$parseCustomers = new parse;

// Array of customer data 
$parseCustomers-&gt;customers = ???????????    

// Finalize new transaction
$parseCustomers-&gt;finalizeTransaction();
</code></pre>

<p><strong>I need to pass the array from the first class output into the second and I'm wondering what best practice is.</strong></p>

<p>This customer array can be very large at times, so ideally I wouldn't have 2 variables containing the same array at any time.</p>
