-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
做这样的if:
if($myip != '1.1.1.1')
{
echo "Not matches";
}
Run Code Online (Sandbox Code Playgroud)
和阅读 ;