How can I sort an associative array by its keys in PHP? Example code: - Biz Tech

How can I sort an associative array by its keys in PHP? Example code:

Listen
$person = array(
    "name" => "John Doe",
    "age" => 30,
    "email" => "[email protected]"
);

ksort($person);

print_r($person);