<?php
$chars = '6Ata7~58jh&*(*HLy^)&a[yjJ>8]G8,$9<Y;B:%^';
preg_match_all('/([a-z])|([A-Z])|(\d)|(.)/', $chars, $m, PREG_SET_ORDER);
$array = str_split($chars);
array_multisort($m, $array);
echo implode($array);
- Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
- aahjjtyyABGHJLY5678889$%&&()**,:;<>[]^^~
preferences:
82.34 ms | 406 KiB | 5 Q