In a previous topic concerning PHP error code, the @ sign was mentioned as something to prepend functions to suppres errors.

My question is:
Where can i find documentation on this? I've tried looking in the manual under error reference, but couldnt find it.

!doc:
Does the prepending @ cover ALL errors, if not then which?? What about warnings? (actually i thought it ONLY suppressed warnings?!?)

??? cheers jh

    PHP Manual:
    Language->Operators->Error Control Operators

    "The @-operator works only on expressions. A simple rule of thumb is: if you can take
    the value of something, you can prepend the @ operator to it. For instance, you can
    prepend it to variables, function and include() calls, constants, and so forth. You cannot
    prepend it to function or class definitions, or conditional structures such as if and
    foreach, and so forth."

    -Cursed

      Write a Reply...