Skip to content

Instantly share code, notes, and snippets.

@SashaKolbasov
Created May 3, 2017 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SashaKolbasov/fe27d6080c316ae45cc88a4e591b7f1f to your computer and use it in GitHub Desktop.
Save SashaKolbasov/fe27d6080c316ae45cc88a4e591b7f1f to your computer and use it in GitHub Desktop.
Sort Array by field
<?php
function cmp($a, $b) { return strcmp($a["cat_letter"], $b["cat_letter"]); }
usort($infoCats, "cmp");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment