Large data insertion
<p>I have a csv file uploaded and data read into an array .The valid data is stored in the array
as  associative array indexed from 0-4000 records</p>

<pre><code>Array
(


[0] =&gt; Array
        (
            [uname] =&gt; uname1
            [name] =&gt; fullname1
            [email] =&gt; uname1@email.com

        )
[1] =&gt; Array
        (
            [uname] =&gt; uname2
            [name] =&gt; fullname2
            [email] =&gt; uname2

        )
[2] =&gt; Array
        (
            [uname] =&gt; uname3
            [name] =&gt; fullname3
            [email] =&gt; uname3@email

        )
[3] =&gt; Array
        (
            [uname] =&gt; uname3
            [name] =&gt; fullname3
            [email] =&gt; uname3@email

        )
..
...


[3999] =&gt; Array
        (
            [uname] =&gt; uname3
            [name] =&gt; fullname3
            [email] =&gt; uname3@email

        )

)
</code></pre>

<p>How can i insert so many records because the <code>$array</code> is stored in variable when i click the submit the <code>$array</code> is reset to null.
How can I approach this without using database, any solution available?</p>
