<?php // Stash the current error_reporting value $error_reporting = error_reporting(); // Restore the error reporting to previous value error_reporting($error_reporting); ?>