You are here: "asort" is not doing what it is supposed to do « PHP Programming Language « IT news, forums, messages
"asort" is not doing what it is supposed to do

Posted by Fran�oise Debat on 02/13/07 18:31

Hello everybody,

I have this problem reading the contents of a directory. here is my code:

$my_dir = dir('data/templates');

asort($my_dir);

while (false !== ($entry = $my_dir->read()))
{
echo $entry."<br>\n";
}
$my_dir->close();


But I need it to read the directory in alphabetical order and I cannot
succeed in this. "asort" is not doing what it is supposed to do. Can
somebody tell me how to achieve this?

Thank you

Françoise

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация