Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Getting infro from array


Marked - 9:14 am on Feb 20, 2010 (gmt 0)


Thank you for you replies :)

That isn't actually the syntax of the array. To get what I posted above, i used the following: print_r($array);

The array is generated by using a function which uses opendir and readir and stores the directory names and image names into the array. Thanks guys, I got the foreach loop working.

To save topic space, I'm also having another problem.

Using the same array, is it possible to order all of the items in alphabetical order? For example, order Mn, Am, Nm so its An,Mn,Nm. And then their individual arrays into alphabetical order. Does anyone know how to do that?

Thanks
Mark.


Thread source:: http://www.webmasterworld.com/php/4083791.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com