Здесь является значением массива выборок, которые возвращаются:Объединение нескольких массивов в PHP
Вот первый массив:
Array 1:
0 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF001
code_2 => IGGF001
1 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF003
code_2 => IGGF003
2 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF004
code_2 => IGGF004
Вот второй массив:
Array 2:
0 =>
return_code => IGEF003
1 =>
return_code => IGGF003
2 =>
return_code => IGGF004
3 =>
return_code => IGEF004
4 =>
return_code => IGGF001
5 =>
return_code => IGEF001
Здесь что я пытаюсь выполнить:
0 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF001
code_2 => IGGF001
select_code_1 => IGEF001 <-- Value coming from the second array
select_code_2 => IGGF001 <-- Value coming from the second array
1 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF003
code_2 => IGGF003
select_code_1 => IGEF003 <-- Value coming from the second array
select_code_2 => IGGF003 <-- Value coming from the second array
2 =>
name => Test name value
desrciption => Test description value
category => Test category value
code_1 => IGEF004
code_2 => IGGF004
select_code_1 => IGEF004 <-- Value coming from the second array
select_code_2 => IGGF004 <-- Value coming from the second array
Надеюсь, этого достаточно, сообщите мне, если вам нужно больше.
Вы добавляете select_code, сколько их во втором массиве? – splash58
это нереальная структура - '0 => return_code => IGEF003' – splash58