The 'at' sign (@) variable prefix

From: Date: Mon, 06 Oct 2008 19:03:37 +0000
Subject: The 'at' sign (@) variable prefix
Groups: php.general 
Request: Send a blank email to php-general+get-281503@lists.php.net to get a copy of this message
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

« previous php.general (#281503) next »