php bug if if不起作用

-1 php if-statement operators file-get-contents

<?php   
$myip=file_get_contents("http://www.whatismyip.com/automation/n09230945.asp");
if(!$myip=='1.1.1.1'){

    echo "Not matches";
}
?>
Run Code Online (Sandbox Code Playgroud)

if不起作用?:S

sha*_*mar 5

做这样的if:

if($myip != '1.1.1.1')
{
    echo "Not matches";
}
Run Code Online (Sandbox Code Playgroud)

阅读 ;