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