Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (12 sloc) 315 Bytes
<?php
class TestTest
{
private $config = array('test' => 1);
public function __construct(array $config = array())
{
$config = array_merge($this->config, $config);
var_dump($config);
}
}
$test = new TestTest();
$test2 = new TestTest(array('test' => 2, 'test2' => 3));