I have an output stream that is saved in a string called $output1, this is displayed to the user. now if I have another stream called $output2 that is identical to $output1 plus a few lines, how can I output only the part of $output 2 that is not in $output1.
For example:
$output1="this cat is";
$output2="this cat is mine";
I want to output:
this cat is mine