I am trying to read a file in my localhost and compare the equivalent string with another string. The contents of the strings are exactly the same and I have done the following:
$homepage = file_get_contents('./output.txt');
$input="some string"
strcmp($input,$homepage) //this statement evaluates to -1..
Where am i going wrong..? How do i cross-check whether the string read from the file is exactly same as the string to be compared..?
Here's a screen-shot with two strings echoed..