This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showdifference($string1, $string2) { | |
// Both strings are split up by spaces, each word is now an item in an array. | |
$string1_array = explode(" ", $string1); | |
$string2_array = explode(" ", $string2); | |
// We will count both arrays to see which is the largest (used later). | |
$s1_count = count($string1_array); | |
$s2_count = count($string2_array); |