Alex Rivera | Logout

PHP operator <>

Asked 2008-10-30T04:56:19.540
29

What does the following code do? A link to something in the PHP manual would also be nice.

if ($_SERVER['SERVER_PORT'] <> 443) {
    doSomething();
}
Edit
Report

1 Answer

2

$_SERVER['SERVER_PORT'] gets the port used by the web server to serve HTTP requests. $_SERVER['SERVER_PORT'] <> 443 checks if the port is not equal to 443 (the default HTTPS port) and if not, invokes doSomething()

answered 2008-10-30T05:03:15.623

Your Answer