<?php // New syntax since PHP 7.4 $a = [3, 2, 5, 6, 1]; usort($a, fn($a, $b) => $a<=>$b); foreach ($a as $key => $value) { echo "$key: $value\n"; }
You have javascript disabled. You will not be able to edit any code.