PHP 8.4.24 Released!

Voting

: one plus three?
(Example: nine)

The Note You're Voting On

in dot games dot mq at gmail dot com
9 years ago
Can also be used with combination of a compare for an array nested value, like

<?php
$array = array(
    "city" => "xyz",
    "names" => array(
        array(
            "name" => "Ana2",
            "id" => 1
        ) ,
        array(
            "name" => "Ana1",
            "id" => 2
        )
    )
);
usort($array["names"], function ($a, $b)    {    return strnatcmp($a['name'], $b['name']);} );

<< Back to user notes page

To Top