I'm having the hardest time figuring out how to sort the results of this array in alphabetical order.
<?php
$imap = @imap_open("{localhost:143/imap/notls}INBOX", $user, $passwd, OP_HALFOPEN);
$all_folders = imap_getmailboxes($imap, "{localhost}", "*");
foreach($all_folders as $val) {
$name = $val->name;
$done = explode("}",$name);
?>
<tr><td><? echo $done[1]; ?></td></tr>
<? } ?>
Does anyone know a simple way to sort the $done[1] variable ?