源代码:
"red", "b" => "green"); $y = array("c" => "blue", "d" => "yellow"); $z = $x + $y; // union of $x and $y var_dump($z); echo "
"; var_dump($x == $y); echo "
"; var_dump($x === $y); echo "
"; var_dump($x != $y); echo "
"; var_dump($x <> $y); echo "
"; var_dump($x !== $y); ?>
运行结果:
array(4) { ["a"]=> string(3) "red" ["b"]=> string(5) "green" ["c"]=> string(4) "blue" ["d"]=> string(6) "yellow" }
bool(false)
bool(false)
bool(true)
bool(true)
bool(true)