Posted by Pedro Graca on 11/15/06 16:17
sk wrote:
> what is the @ used for....
It's used to eliminate error messages generated by an expression.
http://www.php.net/manual/en/language.operators.errorcontrol.php
Example:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
unset($bar, $q);
$foo = $bar; // use of uninitialized variable ($bar)
$bar = @ $q; // error message suppressed
?>
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Navigation:
[Reply to this message]
|