<?php $a = array('a','b','c');$b = array('b','c','d','e');$output = array_merge(array_diff($a, $b), array_diff($b, $a)); print_r($output);
Standard input is empty
Array ( [0] => a [1] => d [2] => e )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!