Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if negative then 0

$value = -9;
echo max($value, 0); // Outputs '0'
Source by andy-carter.com #
 
PREVIOUS NEXT
Tagged: #php #negative
ADD COMMENT
Topic
Name
3+6 =