Voting

: max(seven, three)?
(Example: nine)

The Note You're Voting On

daniel at neville dot tk
16 years ago
My preferred way of checking if a constant is set, and if it isn't - setting it (could be used to set defaults in a file, where the user has already had the opportunity to set their own values in another.)

<?php

defined
('CONSTANT') or define('CONSTANT', 'SomeDefaultValue');

?>

Dan.

<< Back to user notes page

To Top