Is there such a thing?
for eg
$var = -5; echo thefunction($var); // should be 0 $var = 5; echo thefunction($var); // should be 5
Try max($var,0), which will have the desired effect. See the manual page for more information.
max($var,0)