Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function compare_ip_prefix($a, $b)
- {
- return strnatcmp($a->ip_prefix, $b->ip_prefix);
- }
- function compare_foundInIpRange($a, $b)
- {
- return strnatcmp($a->foundInIpRange, $b->foundInIpRange);
- }
- usort($awsIPRangesPrefixes, 'compare_foundInIpRange');
- usort($awsIPRangesPrefixes, 'compare_ip_prefix');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement