Online Forum To Support Coders With Technical Assistance - Read Write Execute

what is use of “@” in php

Ankit Agrawal
Ankit Agrawal
Published on June 23, 2014 · 1 min read

@ is error controller operator in php.if we add this operator before any expression or function then any error generated by that expression or function will be ignored.

eg :

(1)include(‘a.php’);

Warning: include(a.php) [function.include]: failed to open stream: No such file or directory

(2)@include(‘a.php’);

no error or warning

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article what is php ? Next Article → How to on debug in phpfox