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

example:

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