Re: Appending into associative arrays

From: Date: Sun, 15 Apr 2007 19:29:55 +0000
Subject: Re: Appending into associative arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-252974@lists.php.net to get a copy of this message
2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: > I want to sort directories according there modification time and thought > accociative arrays would be perfect. But when I add an element like > > $dirs = array (filemtime($d) => $d) why not simply $dirs[] = array (filemtime($d) => $d); greets Zoltán Németh > > the previous ones are lost. I tried array_push but that doesn't seems to > work, at least I always get syntax errors. Next try was > array_merge(array (...)). So what next? > > O. Wyss >

« previous php.general (#252974) next »