Skip to content

Instantly share code, notes, and snippets.


MAZEN Kenjrawi MAZEN-Kenjrawi

Block or report user

Report or block MAZEN-Kenjrawi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
MAZEN-Kenjrawi /
Created Mar 2, 2019 — forked from bradtraversy/
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

MAZEN-Kenjrawi / strnatcmp_multidimensional_arrays.php
Created Jul 2, 2018
Sorting multidimensional arrays using "natural ordering" algorithm
View strnatcmp_multidimensional_arrays.php
if (!function_exists('sort_by_strnatcmp')) {
function sort_by_strnatcmp($key, $order)
return function ($a, $b) use ($key, $order) {
if (is_numeric($a[$key]) && is_numeric($b[$key])) { // Both Numeric Values
return ($order === 'ASC') ? ($a[$key] >= $b[$key]) : ($a[$key] < $b[$key]);
// One of them at least is string
You can’t perform that action at this time.