Question from the PHP7 test

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

Expert

What does this snippet do?

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