Posted by Kyote on 08/24/07 01:16
>$books = array(); >foreach ($files as $value) { > $c = substr($value,0,1); > if (!is_array($books[$c])) > $books[$c] = array(); > $books[$c][] = $value; >} Thank you very much Jerry. This seems to work exactly as I need. --- Kyote
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming