<?php $str1="the cat is on the roof"; $str2="the mouse is on the roof"; $array_1 = explode(" ", $str1); $array_2 = explode(" ", $str2); echo count(array_diff($array_1, $array_2));
You have javascript disabled. You will not be able to edit any code.