Re: How do I start at a specific position in an array? Is there

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch wrote:
I'll give you a simple case.

I have a GTK PHP MP3 ID3 editor application I'm working on.

When one opens a file in a directory, I provide next/prev buttons to
quickly page to the next/prev file in the directory.

Getting the next/prev to work is simple enough, but...

I've got the whole array built from opendir/readdir, and sorted it into
alphabetical order.

I've got a filename inside that array, from the pre-defined
GtkFileSelection dialog.

So I need to initialize the internal array pointer to the position of the
file within that array, there is no such PHP function.

for(;;) loop would not work?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux