in reply to condensing code
Not being entirely facetious, but sometimes the best condensation of an if/else clause is not to use one at all, as this rather silly example indicates.
$test_nums = int(($total_nums/30) - .01) + 1; [download]