Hi, does anyone know a command to make PHP always round down?
I can do
$result = round(($difference),0);
easily enough, but if $difference is say 30.8, it rounds to 31, I want it to round down to 30 wheteher its 30.1 or 30.99.
I could probably do this with a horrible strlen and substr script, but I'd rather not 🙂
Thanks