Since the mode parameter for options like PHP_ROUND_HALF_UP is available as of PHP 5.3, here is an alternative for ceiling:
<?php echo 252 / 40; // 6.3 ?>
If I round this:
<?php echo round(252 / 40); // 6 ?>
You can also use a ceil (which might be useful for pagination):
<?php echo ceil(252/40); // 7 ?>
[Edited by: googleguy@php.net for clarity]