Re: [PHP] The 'at' sign (@) variable prefix

2008-10-07 Thread Aschwin Wesselius
Jochem Maas wrote: mike schreef: Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: I will get an error, but if I prefix the value with '@', [EMAIL PROTECTED]"q"]; The @ is an error control operator, used to buffer the output and store it in a variable

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread Jochem Maas
mike schreef: > Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > >>> I will get an error, but if I prefix the value with '@', >>> >>> [EMAIL PROTECTED]"q"]; >>The @ is an error control operator, used to buffer the output and >> store it in a variable - $php_errormsg. >

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread mike
Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >> I will get an error, but if I prefix the value with '@', >> >> [EMAIL PROTECTED]"q"]; > >The @ is an error control operator, used to buffer the output and > store it in a variable - $php_errormsg. >It's better to wr

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread Daniel Brown
On Mon, Oct 6, 2008 at 3:03 PM, Crash Dummy <[EMAIL PROTECTED]> wrote: > 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 prefi

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread uaca man
Documentation is at: http://br.php.net/manual/en/language.operators.errorcontrol.php Angelo 2008/10/6 Crash Dummy <[EMAIL PROTECTED]>: > 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 l

[PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread "Crash" Dummy
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 '@', [EMAIL PROTECTED]"q"]; and no value is available, a null st