faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

How would you sort an associative array by its keys?

Feb 20th, 2007 00:37
Articles Hosting, Articles Directory, Himanshu Jain, http://php.net


You can sort an associative array by its keys with the ksort( )
function.
see this thread:
dynamicdrive.com/forums/showthread.php?t=16853
i hope that help.
http://americanahost.com
http://www.qwesz.com