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 Iván Sánchez Ortega on 02/13/07 19:19

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Françoise Debat wrote:

>> Eeeerrr.... $my_dir is not an array, you cannot run asort() through it!!
>
> Yes, I understand. How then can I sort the list alphabetically?

First dump all the directory entries in an array, *then* sort that array.

- --
- ----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.17-1-686 kernel, KDE3.5.3, and PHP
5.2.0-8 generating this signature.
Uptime: 20:18:05 up 4:55, 1 user, load average: 0.56, 0.48, 1.01

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF0g81R56dWuhgxGgRAngmAKDBYZXvHH2dQNjTRo2D0S4qDCrJwACdFAYs
Tif9X54tZaT43WaH6JjJA/s=
=ikhC
-----END PGP SIGNATURE-----

 

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

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