473,554 Members | 2,710 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 44134
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*********@gm ail.com> wrote in message
news:km******** ***********@fe1 .news.blueyonde r.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
2599
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 QA tested for a new year release. I don't think that going to prove practical, but there is no harm in trying :) and some serious family...
5
2847
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 the result to main page (I mean, update the parent page). My popup form looks like this: <form name="form1" action="run.php" method="get"...
2
1967
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 suggestions for re-wording provided by Michael Winter. Other changes are listed below. Fore those interested, a zipped snapshot of the entire FAQ...
3
6559
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 foo( char const ) {} };
19
1944
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 8.0 - 2004-03-15 We cannot expect new readers, especially those entering via Web pages, to know of the FAQ without a regular posting of something...
7
2344
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem? ----------------------------------------------------------------------- Security means that by default you can't. In a more restricted enviroment, there are options. For example, using LiveConnect to connect to...
8
376
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The « navigator » object contains strings which specify the browser and version; however, this is in general not very genuine. Mozilla (and therefore...
9
448
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I run a server side script? ----------------------------------------------------------------------- You trigger a server-side script by setting any object's URL. For example a frame, window, or an Image. An image will also "swallow" the data sent back...
5
1478
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: ================================================================== What is the difference between these initializations? char a = "string literal"; char *p = "string literal";
0
7615
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7819
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7581
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5446
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5165
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3589
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2030
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 we have to send another system
0
858
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.