Question d’entretien chez Yahoo

Write a PHP function to sort a multi-dimensional array by keys, and print out an order html list.

Réponse à la question d'entretien

Utilisateur anonyme

16 nov. 2009

I couldn't remember the exact function (it was ksort) -- I said "array_sort_by_keys" -- or whatever the equivielant function is. I checked php.net/sort but did not see anything specific to keys. The fact that I didn't know "keysort or ksort" off the top of my head they took as indication that I didn't know PHP. -- any moron can look that up in Google. ... oh yeah, don't mention google either.