Php sort multi dimensional array by key -


I'm trying to do the same thing as a boy in the thread but My KSOST ($ array) number 1 returns What am i doing

There is a look at:

bool ksort (array & amp; $ array [, int $ sort_flags = SORT_REGULAR])

You can see, ksort returns a boolean value, and Works directly on the given array (note the reference mark & amp; ). So what you're probably doing, assigning the return value of ksort , such as:

  $ array = ksort ($ array); Instead of   

, simply:

  ksort ($ array);    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -