Lets say I have the following code:
<?php
$a = array(0,1,2);
$b = array(0,1,2);
$c = $a + $b;
print_r($c);
?>
it does not work. Obviously, I can add each corresponding element of the vector by having a "foreach" loop, but I am wondering if there is a predefined function to prevent hard-coding.