php search array for string, then if found, move that string to first item of array
<p>so let's say i have an array:</p>

<pre><code>$people[0] = "Bob";
$people[1] = "Sally";
$people[2] = "Charlie";
$people[3] = "Clare";

if (in_array("Charlie", $people)) {
    //move Charlie to first item in array
}
</code></pre>

<p>What would be the most efficient way to get Charlie to the first item in the array?</p>
