OM The Eternity OM The Eternity - 1 year ago 63
PHP Question

if $a and $b are bothe arrays the what would be the result of $a+$b?

Possible Duplicate:

+ operator for array in PHP?

are both arrays, what is the result of
$a + $b

Answer Source

Union of $a and $b.

The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are NOT overwritten.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download