DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit