Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. function compare_ip_prefix($a, $b)
  2. {
  3.     return strnatcmp($a->ip_prefix, $b->ip_prefix);
  4. }
  5.  
  6. function compare_foundInIpRange($a, $b)
  7. {
  8.     return strnatcmp($a->foundInIpRange, $b->foundInIpRange);
  9. }
  10.  
  11.  
  12. usort($awsIPRangesPrefixes, 'compare_foundInIpRange');
  13. usort($awsIPRangesPrefixes, 'compare_ip_prefix');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement