php basic operations question
<p>I have a array of say 50 elements. This array can be of size anything.
I want to have the first 10 elements of the array in a string.</p>

<p>I have the program as:</p>

<pre><code>$array1= array("itself", "aith","Inside","Engineer","cooool","that","it","because");

$i=0;
for($f=0; $f &lt; sizeof(array1); $f++)
{
    $temparry = $temparry.array1[$f];

    if(($f%10) == 0 &amp;&amp; ($f !== 0))
    {
         $temparray[$i] = $temparray;
         $i++;   
    }
}
</code></pre>

<p>==
so that at the end:<br>
I get<br>
temparray1= first 10 elements<br>
temparray2 - next 10 elemnts...  </p>

<p>I am not what I am missing in my loops.</p>
