Default php function that turns negative numbers in 0

Viewed 40902

Is there such a thing?

for eg

$var = -5;
echo thefunction($var); // should be 0


$var = 5;
echo thefunction($var); // should be 5
5 Answers
Related