<?php
$_xm_anal = [
'availability' => [
'BLK' => [
'SIZE4' => 2,
'SIZE8' => 1,
'SIZE10' => 3,
'SIZE14' => 8,
'SIZE16' => 4,
'SIZE19' => 12,
'SIZE24' => 1
]
],
'color_list' => [
'BLK' => [
0 => 'BLK',
'COLORCODE' => 'BLK',
1 => 'BLACK',
'ColorLANG' => 'BLACK'
]
],
'size_list' => [
'ID' => 20,
'SIZE1' => 39,
'SIZE2' => 40,
'SIZE3' => 40.5,
'SIZE4' => 41,
'SIZE5' => 41.5,
'SIZE6' => 42,
'SIZE7' => 42.5,
'SIZE8' => 43,
'SIZE9' => 43.5,
'SIZE10' => 44,
'SIZE11' => 44.5,
'SIZE12' => 45,
'SIZE13' => 45.5,
'SIZE14' => 46,
'SIZE15' => 46.5,
'SIZE16' => 47,
'SIZE17' => 47.5,
'SIZE18' => 48,
'SIZE19' => 48.5,
'SIZE20' => 49,
'SIZE21' => 36,
'SIZE22' => 37,
'SIZE23' => 37.5,
'SIZE24' => 38,
'SIZE25' => 38.5,
'TitleLANG' => 'NO NO NO'
],
'text_size' => [
'SIZE4' => 41,
'SIZE8' => 43,
'SIZE10' => 44,
'SIZE14' => 46,
'SIZE16' => 47,
'SIZE19' => 48.5,
'SIZE24' => 38
]
];
$Prod["color_code"] = 'BLK';
array_multisort(
$_xm_anal['text_size'],
$_xm_anal['availability'][$Prod["color_code"]]
);
var_export($_xm_anal);
- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- array (
'availability' =>
array (
'BLK' =>
array (
'SIZE24' => 1,
'SIZE4' => 2,
'SIZE8' => 1,
'SIZE10' => 3,
'SIZE14' => 8,
'SIZE16' => 4,
'SIZE19' => 12,
),
),
'color_list' =>
array (
'BLK' =>
array (
0 => 'BLK',
'COLORCODE' => 'BLK',
1 => 'BLACK',
'ColorLANG' => 'BLACK',
),
),
'size_list' =>
array (
'ID' => 20,
'SIZE1' => 39,
'SIZE2' => 40,
'SIZE3' => 40.5,
'SIZE4' => 41,
'SIZE5' => 41.5,
'SIZE6' => 42,
'SIZE7' => 42.5,
'SIZE8' => 43,
'SIZE9' => 43.5,
'SIZE10' => 44,
'SIZE11' => 44.5,
'SIZE12' => 45,
'SIZE13' => 45.5,
'SIZE14' => 46,
'SIZE15' => 46.5,
'SIZE16' => 47,
'SIZE17' => 47.5,
'SIZE18' => 48,
'SIZE19' => 48.5,
'SIZE20' => 49,
'SIZE21' => 36,
'SIZE22' => 37,
'SIZE23' => 37.5,
'SIZE24' => 38,
'SIZE25' => 38.5,
'TitleLANG' => 'NO NO NO',
),
'text_size' =>
array (
'SIZE24' => 38,
'SIZE4' => 41,
'SIZE8' => 43,
'SIZE10' => 44,
'SIZE14' => 46,
'SIZE16' => 47,
'SIZE19' => 48.5,
),
)
preferences:
85.03 ms | 404 KiB | 62 Q