Question from the PHP7 test

Sort an array keeping the indexes and their values through an anonymous function.

Hard

What does this snippet do?

<?php
uasort($array, static function($a, $b){
        return $a <=> $b;
});
Author: Yves AstierStatus: PublishedQuestion passed 96 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!