473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

[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 44118
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
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
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
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
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
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
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem?...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The...
9
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I run a server side script? ----------------------------------------------------------------------- You...
5
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...

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.