if I want to compare two strings...for example
$compare_1 = "http://www.codingforums.com/error.php?abc=123";
$compare_2 = "http://www.codingforums.com/index.php";
$compare = "error.php";
how do I get sub string from $compare_1 or $compare_2 to see if the URL has "error.php" (i.e. $compare)
if substr(($compare_1 has error.php) == $compare)
echo "matched";
how can I find if $compare_1 or $compare_2 consist of "error.php"