RE: [PHP] the function of the "@" symbol?

From: Date: Thu, 06 Nov 2003 01:16:14 +0000
Subject: RE: [PHP] the function of the "@" symbol?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168642@lists.php.net to get a copy of this message
To me .. This looks more like a line of perl code. I am familiar with the @ sign to kindly ask a function not to give any errors to a function. But can it really be used like this on vars? What would it suppress, the "notice: undefined variable $first on line 44" notification? Funny.. -----Original Message----- From: Nitin [mailto:nitinmehta@kappa.net.in] Sent: Tuesday 04 November 2003 12:10 To: Leevy, Joffrey L; php-general@lists.php.net Subject: Re: [PHP] the function of the "@" symbol? it basically means, shutup please. ----- Original Message ----- From: "Leevy, Joffrey L" <jleevy@howard.edu> To: <php-general@lists.php.net> Sent: Tuesday, November 04, 2003 1:12 PM Subject: [PHP] the function of the "@" symbol? > Hi all: > > I have been searching through several books to find out what the "@" > character represents. > > An example used in code: > > if (@$first == "no")......... > > Could anyone please explain the function of "@" in the code? > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#168642) next »