Jump to content

Archived

This topic is now archived and is closed to further replies.

spyke01

Quick question about <>

Recommended Posts

ok i trying to figure out what the guy on the project before me did, some stuff was pretty good, and others....well I probally shouldnt even mention, im trying to figure out what hes doing with his sql statement, and i came across this in the php
[code]
  $expire_days = $qr['expire_days'];
  $exp_date = date("Ymd",strtotime ("+$expire_days day",mktime(0,0,0,substr($qr['datestamp'],4,2),substr($qr['datestamp'],6,2),substr($qr['datestamp'],0,4))));
if($exp_date <> date("Ymd")){
[/code]

im wondering what the <> does, anyone know, when i try it on php's site it redirects me to Hyperwave Functions, if i use their "all php.net sites" search, it throws an error, so does google

Share this post


Link to post
Share on other sites
I believe it is "not equal to" try replacing it with != and see if you get the same result.

-Chris

Share this post


Link to post
Share on other sites
Yeah, I was right.

Check this out:
http://www.zend.com/manual/language.operators.comparison.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.