<?php $array = [ 'list[P] = 1', 'list[A] = 1', 'list[F] = 2', 'list[B] = 1' ]; usort( $array, fn($a, $b) => strpbrk($a, '0123456789') <=> strpbrk($b, '0123456789') ); var_export($array);
You have javascript disabled. You will not be able to edit any code.