What is the precidency and associtivity for increment operator and assignment operator for the block of code
$a=array(1,2,3);
$b=array(4,5,6);
$c=1;
$a[$c++]=$b[$c++];
print_r($a);
As per the execution it outputs
Array
(
[0] => 1
[1] => 6
[2] => 3
)
But I am not able to understand how array $a
index 1 holds the value of array $b
index 2 value. Can anybody explain the scenario how the execution happens?