To determine if a value is less than another value, use:
if ($var < 0)
echo "var is negative and non-zero";
To determine if a value is less than or equal to another value, use:
if ($var <= 0)
echo "var is negative";
To determine if a value is less than another value, use:
if ($var < 0)
echo "var is negative and non-zero";
To determine if a value is less than or equal to another value, use:
if ($var <= 0)
echo "var is negative";