note 76279 added to language.operators.errorcontrol

From: Date: Mon, 09 Jul 2007 10:18:16 +0000
Subject: note 76279 added to language.operators.errorcontrol
Groups: php.notes 
Request: Send a blank email to php-notes+get-128317@lists.php.net to get a copy of this message
To omelnyk: It also says: A simple rule of thumb is: if you can take the value of something, you can prepend the @ operator to it. For instance, you can prepend it to variables, function and include() calls.... "...you can prepend it to variables..." I happen to use it with variables all the time, and have also noticed the (IMHO) odd result when trying to stifle errors when asking isset() about a nonexistent variable. However, it does make more sense to use @isset($foo) than isset(@$foo) to me anyway... ---- Server IP: 208.69.120.35 Probable Submitter: 131.191.82.17 ---- Manual Page -- http://www.php.net/manual/en/language.operators.errorcontrol.php Edit -- https://master.php.net/note/edit/76279 Del: integrated -- https://master.php.net/note/delete/76279/integrated Del: useless -- https://master.php.net/note/delete/76279/useless Del: bad code -- https://master.php.net/note/delete/76279/bad+code Del: spam -- https://master.php.net/note/delete/76279/spam Del: non-english -- https://master.php.net/note/delete/76279/non-english Del: in docs -- https://master.php.net/note/delete/76279/in+docs Del: other reasons-- https://master.php.net/note/delete/76279 Reject -- https://master.php.net/note/reject/76279 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128317) next »