Add Variables from class to another similar class
<p>I have two similar classes, which contains a lot of integer variables. </p>

<p>I need a way to add all the variables from one class to another class. </p>

<p>my class is similar to this </p>

<pre><code>class statistics{

var $Variable_1
var $Variable_2
var $Variable_3
var $Variable_4
var $Variable_5
var $Variable_6
var $Variable_7
var $Variable_8
var $Variable_9
var $Variable_10

/* 
.. to 100 
*/

}
</code></pre>

<p>All I need is to <code>ADD</code> all these variables from the <code>first</code> class to the <code>second</code> class, and I think that my code is too long for <code>php</code>.</p>

<pre><code>$class1-&gt;Variable_1 += $class2-&gt;Variable_1


    /* 
    .. to 100 
    */
</code></pre>

<p>There is no chance to use <code>for loop</code> or <code>foraech</code> because the variables doesn't has anykeys. Moreover, the variables names are not contain any numbers.</p>

<p>Any suggestions ? </p>
