PHP 8.6.0 Beta 1 is available for testing

Voting

: one plus zero?
(Example: nine)

The Note You're Voting On

ravenswd at gmail dot com
16 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