This is a discussion on Limit calculation output within the PHP General forums, part of the PHP Programming Forums category; Hello, I'm a PHP newbie, but like to learn.. My question is how do I limit a calculation output ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I'm a PHP newbie, but like to learn.. My question is how do I limit a calculation output in the following code: <img src="images/health/<?=round(( $number1 / $number2 ));?>.png"/> I need a php code that prints out 10 for numbers that are higher then 10.. So if the result would be 86, php will print 10... Thanks! /Xafke |