language operators errorcontrol

Error control OperatorsPHP ManualPrevChapter 10. OperatorsNextError control Operators PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored. If the track_errors feature is enabled, any error message generated by the expression will be saved in the global variable $php_errormsg. This variable will be overwritten on each error, so check early if you want to use it. 1  2 <?php 3 /* Intentional SQL error (extra quote): */ 4 $res = @mysql_query( "select name, code from 'namelist" ) or 5  die( "Query failed: error was '$php_errormsg'" ); 6 ?> 7  See also error_reporting(). PrevHomeNextComparison OperatorsUpExecution Operators
Wyszukiwarka

Podobne podstrony:
language operators errorcontrol
language operators errorcontrol
language operators errorcontrol
language operators comparison
language operators increment
language operators bitwise
language operators array
language operators execution
language operators
language operators arithmetic
language operators bitwise
language operators precedence
language operators execution
language operators increment

więcej podobnych podstron