PHP - Splitting array (name and value) into different strings?
<p>I have the following array:</p>

<pre><code>Array
(
    [name] =&gt; hejsan
    [lastname] =&gt; du
)
</code></pre>

<p>I'm trying to loop through every item in the array, and store the name of the item in the array, and the value of that item, in two seperate strings.</p>

<p>Something like this:</p>

<pre><code>$name1 = "name";
$value1 = "hejsan";

$name2 = "lastname";
$value2 = "du";
</code></pre>

<p>Is that possible?</p>

<p>Thanks in advance!</p>
