Page 1 of 1

The @-Operator

Posted: Mon Mar 01, 2010 12:26 pm
by titeroy
Hi, I am new here and hope this is the right bard.
My question is:

What is the difference between
@session_start();
and
session_start();

Actually I am curious what this @-Operator is for.
[Because i could not search for @ I hope this is not a stupid question that has been covered a hundred times b4]

Re: The @-Operator

Posted: Mon Mar 01, 2010 12:33 pm
by onion2k
It's the error suppression operator - it means "do this, and if there's an error just ignore it and carry on". My advice is never use it.

Re: The @-Operator

Posted: Mon Mar 01, 2010 12:42 pm
by titeroy
TNX 4 the quick response