3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pages = [ 'a2' => ['title' => '.a'], 'a1' => ['title' => 'A'], 'c1' => ['title' => 'C'], 'c2' => ['title' => 'C100'], 'c3' => ['title' => 'C3'], 'c4' => ['title' => 'c22'], 'b' => ['title' => 'B'], 'c25' => ['title' => 'c'], 'n' => ['title' => '.N'], ]; $titles = array_column($pages, 'title'); array_multisort( preg_replace('/^[^0-9a-z]+/i', '', $titles), SORT_STRING|SORT_FLAG_CASE, $titles ); echo implode(', ', $titles);

preferences:
43.09 ms | 407 KiB | 5 Q