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
Navigation:
[Reply to this message]
|