How to check if a number $days is negative?
i tried something with pregmatch to see if theres a - in the number but that dont work 🙁
ne ideas?
thanks
nevermind this stupid question my syntax was fscked up...
if ( preg_match("/-/", $days) ) {
i forgot the / /
Ok, you can laugh now!
Why not check if ($days < 0) ?
that also works 🙂