I have an array like this:
$allauto = [
'name' => $title,
'type' => 'simple',
'description' => $description,
'attributes' => [
[
'id' => 1,
'visible' => true,
'options' => $model,
],
And I have an array $addimage like this:
$addimage = [
'images' [
'src' => xxxxx
'src' => yyyyy
],
]
How do I combine those (with array_push)?so I get a result like tthis:
$allauto = [
'name' => $title,
'type' => 'simple',
'description' => $description,
'attributes' => [
[
'id' => 1,
'visible' => true,
'options' => $model,
],
'images' => [
[
'src' => xxxxx
'src' => yyyyyy
]
I tried different things with array_push but I get keys like 0 and 1 between the 2 arrays... Can anyone help?