Level 41
Try using
$merge = array_merge($newpool, $array01);
I am getting Unsupported operand types only when $array01 is empty... How do I get around this?
//Array for the a newly create group
$newgroup = array();
$newgroup = array_add($newgroup, $justcreated_group, '1');
//Array for existing group selections
$array01 = Input::get('group_ids');
//Merge the 2 (give me Unsupported operand types when array01 is empty)
$merge = $newgroup + $array01;
$finalarray = array_keys($merge);
$array01 = Input::get('group_ids') == null ? [] : Input::get('group_ids');
Please or to participate in this conversation.