array_merge() is a straightforward and easy function can copy/merge/concat in PHP

example:

$this->config = array_merge([], $config);
  • No labels