There are two arrays: The names of the characteristics are stored in the first array, their values are stored in the second array. It is necessary to merge them, so that later it would be possible to output the Names of the characteristic and the list of their values, well, I haven’t thought up how to do it correctly yet. Give advice for simplicity or it may not be entirely convenient to manipulate the output of data in the form of a list or checkbox.
1. Массив характеристик: array(9) { [0]=> array(5) { ["id"]=> int(1) ["name_ru"]=> string(8) "Цвет" ["alias"]=> string(6) "colour" ["type"]=> string(6) "select" } [1]=> ... } 2. Массив значений array(27) { [0]=> array(4) { ["id"]=> int(1) ["property_id"]=> int(1) ["value_ru"]=> string(14) "Красный" } [1]=> .... } 3.Предполагаемый массив array(9) { [0]=> array(5) { ["id"]=> int(1) ["name_ru"]=> string(8) "Цвет" ["alias"]=> string(6) "colour" ["type"]=> string(6) "select" ["values"] => [0] => array(4) { ["id"]=> int(1) ["property_id"]=> int(1) ["value_ru"]=> string(14) "Красный" } [1] => ..... } [1]=> ... }