Is it possible to insert the record using multi dimension array?
<p>The scenario is </p>

<p>I would like to insert an record like this: </p>

<p>Firstly, i have an array of what datafield i need to insert</p>

<pre><code> $field = Array ( [0] =&gt; Email [1] =&gt; Name ) 
</code></pre>

<p>Secondly, I have an array of mail </p>

<pre><code>$mail = Array ( [0] =&gt; a@a.com [1] =&gt; foodil@g.com )
</code></pre>

<p>Lastly, I have an multi dimension array that has Name, </p>

<pre><code>$set = Array ( [1] =&gt; Array ( [1] =&gt; leo [4] =&gt; NULL ) ) 
</code></pre>

<p><strong>however, It can be  more than one field, 
eg. it can be also have a field of phone (and also address, geneder...whatever) , then it will be:</strong></p>

<pre><code>   $field = Array ( [0] =&gt; Email [1] =&gt; Name  [2] =&gt; Phone ) 

   $set = Array ( [1] =&gt; Array ( [1] =&gt; leo [4] =&gt; NULL )  [5] =&gt; Array ( [1] =&gt; 4343343 [4] =&gt; 3453343 )) 
</code></pre>

<p>The problem is , how to insert in the scenario like this? :
The query should look like this </p>

<pre><code>$query="INSERT INTO subscriber (Email,Name,Phone) VALUES ($mail[] , $set[][], $set[][])";
</code></pre>
