Jump to content

What is this symbol?


Trium918

Recommended Posts

Could someone please explain to me what do

the symbol @ does in the script below?

 

1.) What is the name of this symbol?

2.) What does it do?

3.) When to use it?

 

<?php
function db_connect()
{
   $result = @mysql_pconnect("localhost", "content", "password"); 
   if (!$result)
      return false;
   if (!@mysql_select_db("content"))
      return false;

   return $result;
}
?>

Link to comment
https://forums.phpfreaks.com/topic/47153-what-is-this-symbol/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.