Split string into variables based off of values
<p>I have the following PHP code and would like to split the string into separate variables:</p>

<pre><code>$names = "login1,login2,login3,login4,...loginN";
</code></pre>

<p>Example result:</p>

<pre><code>$login1 = "login1";

$login2 = "login2";

$login3 = "login3";

$login4 = "login4";
</code></pre>
