名前、年齢、性別の代わりに、性別が最初、名前が 2 番目、年齢が 3 番目になるようにサブパターン配列キーを並べ替えることは可能ですか?
また、数値キーと値を取得して、関連付けられたキーと値を保持することは可能ですか?
Array
(
[categoryOne] => Array
(
[0] => Array
(
[0] => Dave | 12 | M
[Name] => David
[1] => David
[Age] => 12
[2] => 12
[Gender] => M
[3] => M
)
[1] => Array
(
[0] => Lisa | 44 | F
[Name] => Lisa
[1] => Lisa
[Age] => 44
[2] => 44
[Gender] => F
[3] => F
)
)
[categoryTwo] => Array
(
[0] => Array
(
[0] => Ann | 32 | F
[Name] => Ann
[1] => Ann
[Age] => 32
[2] => 32
[Gender] => F
[3] => F
)
)
)