On Wednesday 21 August 2002 06:41, Øystein Håland wrote:
> "Put them into an array and sort() the array. The loop through the sorted
> array and output at that point."
>
> Just what I try. But, because of my lack of understanding, the output is my
> problem:
>
You're not doing what has been sugg
"Put them into an array and sort() the array. The loop through the sorted
array and output at that point."
Just what I try. But, because of my lack of understanding, the output is my
problem:
function createLinks() {
$p = 0;
$handle=opendir(".");
echo "\n";
while ($file = readdir($handle)){
Put them into an array and sort() the array. The loop through the sorted
array and output at that point.
-Rasmus
On Wed, 21 Aug 2002, Øystein Håland wrote:
> When calling the function createLinks() I get an unsorted result, and that's
> NOT what I want. But I'm not able (lack of knowlegde) to
When calling the function createLinks() I get an unsorted result, and that's
NOT what I want. But I'm not able (lack of knowlegde) to sort the output
(the links).
\n";
while ($file = readdir($handle)){
if (($file == ".") || ($file == "..") || ($file == "index.php") || ($file
== basename ($PHP
4 matches
Mail list logo