Reply to Re: question about @

Your name:

Reply:


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*.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация