RE: [PHP] SQL Distinct-like behaviour
| From: | Bastien Koert | Date: | Fri, 24 Aug 2007 14:23:46 +0000 |
| Subject: | RE: [PHP] SQL Distinct-like behaviour | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-261237@lists.php.net to get a copy of this message | ||
Read them all into an array and do an array-unique on it
bastien> Date: Thu, 23 Aug 2007 23:54:40 -0300> From: celoserpa@gmail.com> To:
bastien> php-general@lists.php.net> Subject: [PHP] SQL Distinct-like behaviour> > How could I
bastien> iterate over the files in a directory and build a list of unique> filenames? Take the following
bastien> filelist:> > file1_01.jpg> file2_01.jpg> file2_02.jpg> file2_03.jpg>
bastien> file3_01.jpg> file3_02.jpg> file3_03.jpg> file4_01.jpg> file4_02.jpg>
bastien> file4_03.jpg> > I would like to build an array like this: $names =>
bastien> ("file1","file2","file3","file4")> > How could I do
bastien> that ?> > Thanks in advance.
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE