Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$str1 = "this-is-a-test";
$str2 = "this-is-a-test-numberOne";
$result = strcmp($str1,$str2);
switch (TRUE) {
case ($result < 0):
$remainder = substr($str2,$result);
echo "The extra text was: $remainder<br />\n";
break;
case ($result > 0):
$remainder = substr($str1,($result * -1));
echo "The extra text was: $remainder<br />\n";
break;
default:
echo "Strings were the same, no extra data<br />\n";
}