Php return multiple array
<p>I would like to return multiple arrays and then separate them.</p>

<pre><code>function cal(){
    $st1=array('1','2'); 
    $st2=array('1','2');
    return $st1."-".$st2;
}
</code></pre>

<p>call it </p>

<pre><code>$mainstring=explode("-",cal())
print_r($mainstring[0]);
print_r($mainstring[1]);
</code></pre>

<p>I want to get original array of $st1 and $st2.</p>

<p>Please help.</p>
