<?php function __($v) { return "__($v)"; } $array1 = ['dogs' => __('Dogs'), 'cats' => __('Cats')]; $array2 = [ 'ducks' => ['width' => 350, 'height' => 350, 'crop' => true], 'cows' => ['width' => 750, 'height' => 150, 'crop' => true], ]; array_push($array1, ...array_keys($array2)); print_r($array1);
You have javascript disabled. You will not be able to edit any code.