Convert numeric index of array to Json To fill typeahead
<p>I need to use it for bootstrap typeahead. I have array like this</p>

<pre><code>array
  4 =&gt; string 'Michelle' (length=8)
  6 =&gt; string 'Freya' (length=5)
  9 =&gt; string 'Ivana' (length=5)
  14 =&gt; string 'Stephanie' (length=9)
</code></pre>

<p>I need to remove numbers. to return-></p>

<pre><code>['Michelle', 'Freya', 'Ivana', 'Stephanie']
</code></pre>

<p>the code that I am using is </p>

<pre><code>$users = array();
            foreach ($user_list as $user_det)
            {
                $users[$user_det['User']['id']] = $user_det['User']['name'];// . ' ' .$user_det['User']['surname'];
            }
</code></pre>
