Need help with PHP array
<p>Can anybody help me out, I'm stuck, don't know how to write a php nested for loop to convert into a key value array.</p>

<p>This is the array structure.</p>

<p>Needed to turn into key value array( combining JobDescription and userdetail array together)</p>

<pre><code>array(2) {
    ["jobDescription"]=&gt; array(5) {
        ["funeralFor"]=&gt; string(6) "Myself"
        ["serviceType"]=&gt; string(1) "1"
        ["religionType"]=&gt; string(1) "2"
        ["area"]=&gt; string(4) "2154"
        ["customerComment"]=&gt; string(6) "fdfddf"
    }
    ["userDetail"]=&gt; array(6) {
        ["contactEmail"]=&gt; string(16) "fdddf@fffgfg.com"
        ["contactFirstName"]=&gt; string(6) "fddfdf"
        ["contactLastName"]=&gt; string(6) "fddffd"
        ["contactPhoneNumber"]=&gt; string(10) "0420988191"
        ["signup"]=&gt; array(2) {
            ["id"]=&gt; string(32) "8048f0f7106c336e1a8825d1d3bec902"
            ["input"]=&gt; string(3) "k5m"
        }
        ["agreement"]=&gt; string(1) "1"
    }
} 
</code></pre>

<p>Thanks so much in advance</p>
