473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[FAQ] What does @ (at-sign) do?

[ This is just a start. I hope somebody will follow up with
more suggestions. Particularly: Is 'at-sign' the best
name? How about the Unicode name 'COMMERCIAL AT'? Does
'error messages' include notices and warnings? What should
the example be? ]

Q: What does @ (at-sign) do?

A: @ is an operator, which, when prepended to an expression,
suppresses error messages.

Example:

[example here]

http://www.php.net/manual/en/languag...rorcontrol.php

--
Jock
Jul 17 '05 #1
5 44128
Carved in mystic runes upon the very living rock, the last words of John
Dunlop of comp.lang.php make plain:
[ This is just a start. I hope somebody will follow up with
more suggestions. Particularly: Is 'at-sign' the best
name? How about the Unicode name 'COMMERCIAL AT'? Does
'error messages' include notices and warnings? What should
the example be? ]

Q: What does @ (at-sign) do?

A: @ is an operator, which, when prepended to an expression,
suppresses error messages.

Example:

[example here]

http://www.php.net/manual/en/languag...rorcontrol.php


Example:

$x = 'a';
extract($x);
@extract($x);

I like this idea. There are a number of things like this that a person
might come across in someone else's code, for example, that are difficult
to look up in the docs without knowing what they are.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #2
John Dunlop wrote:
[ This is just a start. I hope somebody will follow up with
more suggestions. Particularly: Is 'at-sign' the best
name? How about the Unicode name 'COMMERCIAL AT'? Does
'error messages' include notices and warnings? What should
the example be? ]

Q: What does @ (at-sign) do?

A: @ is an operator, which, when prepended to an expression,
suppresses error messages.

Example:

[example here]

http://www.php.net/manual/en/languag...rorcontrol.php


turns off error messages - don't use it for development environments, do
use it for production environments
Jul 17 '05 #3
NSpam wrote:
turns off error messages - don't use it for development environments, do
use it for production environments


Good point.

--
Jock
Jul 17 '05 #4
Alan Little wrote:
Example:

$x = 'a';
extract($x);
@extract($x);
Great!
I like this idea. There are a number of things like this that a person
might come across in someone else's code, for example, that are difficult
to look up in the docs without knowing what they are.


Yes, that's why I think what we call @ is important. If you
were searching for @ on Google, what would you call it?

Here's some results:

"at-sign"
316 000 hits

commercial at"
97 500 hits

"commercial at sign"
1 730 hits

'Commercial at sign', though not as common, covers those
three possibilities, but it does sound a bit stilted,
doesn't it? The AUE FAQ says it's the longest name for @.

http://www.alt-usage-english.org/excerpts/fxnameso.html

The Jargon File 4.4.7 says:

| @
| Common: at sign; at; strudel. Rare: each; vortex; whorl;
| [whirlpool]; cyclone; snail; ape; cat; rose; cabbage;
| <commercial at>.

http://catb.org/~esr/jargon/html/A/ASCII.html

And if you're really interested, /A Natural History of the @
Sign/:

http://www.herodios.com/herron_tc/atsign.html

--
Jock
Jul 17 '05 #5
"NSpam" <ch*********@gmail.com> wrote in message
news:km*******************@fe1.news.blueyonder.co. uk...
John Dunlop wrote:
[ This is just a start. I hope somebody will follow up with
more suggestions. Particularly: Is 'at-sign' the best
name? How about the Unicode name 'COMMERCIAL AT'? Does
'error messages' include notices and warnings? What should
the example be? ]

Q: What does @ (at-sign) do?

A: @ is an operator, which, when prepended to an expression,
suppresses error messages.

Example:

[example here]

http://www.php.net/manual/en/languag...rorcontrol.php


turns off error messages - don't use it for development environments, do
use it for production environments


Actually, the @ sign is mostly useful only during development, when the
level of error reporting is high. In a typical production environment either
error messages are turned off over all.
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2592
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
5
2837
by: Hemanth | last post by:
Hello there, I'm running a script that opens a popup window (which is basically a form with checkboxes and a submit button). When I click the submit button I want to run a PHP script and target...
2
1961
by: Richard Cornford | last post by:
Anyone who has taken a look at the online FAQ today may have noticed that I have updated it. The majority of the changes are the updating of broken links and the implementation of that extensive...
3
6556
by: Nicolas Castagne | last post by:
Hi all, I have been wondering for a while why function hiding (in a derived class) exists in C++, e.g. why when writing class Base { void foo( int ) {} }; class Derived: public Base { void...
19
1938
by: Dr John Stockton | last post by:
kelvlam <kelvlam@gmail.composted : The newsgroup FAQ has not been posted here for some considerable while. The latest version I know of is 8.1 - 2005-11-05 but I think the Web site serves...
7
2334
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem?...
8
376
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The...
9
448
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I run a server side script? ----------------------------------------------------------------------- You...
5
1473
by: Eric | last post by:
Dear All: In the process of reading the FAQ, I have some questions here is the question from 1.13(in the new edition maybe 1.32). quot:...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.