What will be the result of the following operation?
$a = array_merge([1,2,3] + [4=>1,5,6]);
echo $a[2];
Which of the following tasks can be achieved by using magic methods? (Choose 3)
Which of the following rules must every correct XML document adhere to? (Choose 2)
What is the output of the following code?
class test {
public $value = 0;
function test() {
$this->value = 1;
}
function __construct() {
$this->value = 2;
}
}
$object = new test();
echo $object->value;