PHP Sort Array on a Key (using sort method inside of a Class)

preview_player
Показать описание
Here we learn how to sort an array, based on of the keys in the array, and doing that sort with a function that is inside of a class

The sort method uses strnatcasecmp which does a natural string compare that doesn't care about case.
Рекомендации по теме
Комментарии
Автор

Oh my God, I've been dying to do this for so long. Don't ever stop making tutorials

abdullahislam
Автор

@PuReWebDev no prob. I actually tried it first before I replied. I got an error on $a and $b not defined. Which is what I expected because those params have to be passed somewhere. Thanks!

optikalefx
Автор

Please show us some tips to achieve your nifty designs, thanks!

thinkgo
Автор

@PuReWebDev Yea, you can't pass an actual type function into the 2nd paramater. You have to pass a callback, which is either a type string, or type array.

optikalefx
Автор

@optikalefxx I agree on the eclipse part. But most of the IDE's for native mobile are in Eclipse, cant escape it. Oh, what editor and capture software do you use?

secoxxx
Автор

@secoxxx If it wasn't in shitty eclipse I might give it a try.

optikalefx
Автор

What text editor do you use to write html, css, and php on your mac?

NossidraN
welcome to shbcf.ru