Variable inside Array
<p>Why does this not work:</p>

<pre><code>$emails = $_POST["emails"];
$emails = "'" . implode("','", explode(' ', $emails)) . "' ";
// The result is emails like this: 'foo@bar.com','foo@bar.com'

$to = array($emails);
</code></pre>

<p>How do i get the variable <code>$emails</code> into my array? (Learning PHP as I am sure is evident)</p>
