RE: [PHP-ES] Lectura de directorios y orden
| From: | Pere Picornell | Date: | Fri, 28 May 2004 07:25:19 +0000 |
| Subject: | RE: [PHP-ES] Lectura de directorios y orden | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-48991@lists.php.net to get a copy of this message | ||
Perdón, no me lo habia mirado bien, hasta el asort no tienes los datos por
orden alfabético.
Mas bien seria, en vez de:
return asort($result_array);
tendría que ser:
$result_array = asort($result_array);
$array_bueno = array();
For($x=0;$<$lo_que_quieras;$x++){
$array_bueno[] = $result_array[$x];
}
return $result_array;
| -----Mensaje original-----
| De: Pere Picornell [mailto:p.picornell@mediactives.com]
| Enviado el: viernes, 28 de mayo de 2004 9:12
| Para: 'Fernández Crisial'; php-es@lists.php.net
| Asunto: RE: [PHP-ES] Lectura de directorios y orden
|
| Cambiando el while por un for, no te sirve?
|
| > while ($file = $this_dir->read()){
|
| --
| PHP Spanish Localization Talk Mailing List (http://www.php.net/)
| To unsubscribe, visit: http://www.php.net/unsub.php