Closed. This question needs
details or clarity. It is not currently accepting answers.
Answer
Solution:
Use array_merge
, to join multiple arrays in PHP.
PHP.net
- array_combine ??� Creates an array by using one array for keys and another for its values
- array_merge ??� Merge one or more arrays
Be aware! The behaviour of both is different.
Source