PHP operator (?) question, The @ symbol |
PHP operator (?) question, The @ symbol |
| *mipadi* |
Jul 27 2005, 08:43 AM
Post
#1
|
|
Guest |
Question for people who are more knowledgeable about PHP than I:
I've been looking through some source code in an effort to update/modify a script, and I've run into a @ being prepended to some functions. What exactly is the purpose of this operator (if it is an operator)? Below are some examples of the code in question (note they are just pieces of code and don't actually go together): if (@phpversion() < '4.0.0') @reset($test) if (@ini_get('register_globals') I'm wondering if it has something to do with the value returned (much like how you use the & operator to pass by reference instead of value) but I'm not sure. Anyone know this one? |
|
|
|
![]() |
Jul 27 2005, 11:47 PM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 |
it turns off error reporting for that function.
|
|
|
|
mipadi PHP operator (?) question Jul 27 2005, 08:43 AM
mipadi Ah, right... I think I had learned that somewhere,... Jul 28 2005, 07:20 AM
hlall your welcome.
oh and a common use for this is wit... Jul 28 2005, 06:44 PM
mipadi Oh, okay. Well, I wrote my own function for handli... Jul 28 2005, 10:33 PM![]() ![]() |