Re: The 'at' sign (@) variable prefix

From: Date: Mon, 06 Oct 2008 19:10:03 +0000
Subject: Re: The 'at' sign (@) variable prefix
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281505@lists.php.net to get a copy of this message
Documentation is at: http://br.php.net/manual/en/language.operators.errorcontrol.php Angelo 2008/10/6 Crash Dummy <gmane@thedatalist.com>: > I learned through osmosis that I could use the '@' sign to prevent an > error with an uncertain variable. For example, if there is no $_GET[] > value in this line, > > $query=$_GET["q"]; > > I will get an error, but if I prefix the value with '@', > > $query=@$_GET["q"]; > > and no value is available, a null string is returned, and no error is > generated. > > This is great, but I'd like to see it in writing. I can't find this > feature in the documentation. Can someone steer me to it? > -- > Dave > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#281505) next »