[go: nahoru, domu]

PHP 8.4.0 Alpha 4 available for testing

Voting

: max(five, six)?
(Example: nine)

The Note You're Voting On

ravenswd at gmail dot com
14 years ago
__halt_compiler is also useful for debugging. If you need to temporarily make a change that will introduce an error later on, use __halt_compiler to prevent syntax errors. For example:

<?php
if ( $something ):
print
'something';
endif;
// endif placed here for debugging purposes
__halt_compiler();
endif;
// original location of endif -- would produce syntax error if __halt_compiler was not there
?>

<< Back to user notes page

To Top