我想在第二符[1](1至d)以下數組進行排序:
$_SESSION['kartenstapel']=array(
'11','12','13','14','15','16','17','18','19','1A','1B','1C','1D',
'21','22','23','24','25','26','27','28','29','2A','2B','2C','2D',
'31','32','33','34','35','36','37','38','39','3A','3B','3C','3D',
'41','42','43','44','45','46','47','48','49','4A','4B','4C','4D',
'51','52','53','54','55','56','57','58','59','5A','5B','5C','5D',
'W1','W2','W3','W4','W5','W6','W7','W8','W9','WA','WB','WC','WD'
);
理想輸出將是以下情況:
$_SESSION['kartenstapel']=array(
'11','21','31','41','51','W1','12','22','32','42','52','W2','13'...
使用'usort()'並應用您的自定義排序功能。 – Rizier123
它的工作原理!謝謝你指出! – Alexander