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

Posted by Françoise Debat on 02/13/07 18:42

Iván Sánchez Ortega wrote:
> Françoise Debat wrote:
>
>> I have this problem reading the contents of a directory. here is my code:
>>
>> $my_dir = dir('data/templates');
>>
>> asort($my_dir);
>
> Eeeerrr.... $my_dir is not an array, you cannot run asort() through it!!

Yes, I understand. How then can I sort the list alphabetically?

Thanks for your help

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

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