How do I fill a PHP array with data from MySQL?
<p>I'm using the Twilio API to send sms. I'm trying to change it so that I can send to a list of recipients from mysql results.</p>

<p>The example code given is:</p>

<pre><code>$people = array(
    "+14155551212" =&gt; "First Lastname",
);
</code></pre>

<p>My code is:</p>

<pre><code>$people = array(
    while($res = mysql_fetch_array($usersphone)) {
    $people[$res['UserMobile']] = $res['UserFirstName'];
    }
);
</code></pre>

<p>The syntax is bad but I can't figure out where.</p>
