I’m working through some PHP code and cannot figure out what the significance of the @ sign is in this code:
$data = @fread($_socket, 8192);
I wasn’t able to find many other examples on php.net either that explain what @ does, instead it is just used.
Thanks
The @ suppress the error message that would occur if what is on the right-hand of the @ were to fail.
Here’s the link to the php.net page that has full details
http://php.net/manual/en/language.operators.errorcontrol.php