Hey guys. I've been putting some really good thought into this and I can't seem to figure out a good solution.
What would be a logical way or sorting the following by their "number" value.

$someArray = [
    [
        "country"   => "US",
        "number"    => 552
    ],
    [
        "country"   => "GB",
        "number"    => 817
    ],
    [
        "country"   => "ES",
        "number"    => 621
    ],
    [
        "country"   => "ZA",
        "number"    => 271
    ]
];

Thanks!

Cheers @pritaeas. Never knew that was recursive into the array.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.