Here is an introduction to its usage.
For example:
Copy the code The code is as follows:
function db_connect()//Connect to the database
{
@$db =mysql_connect('localhost','root',' test');
if(!$db)
throw new Exception('Failed to connect to the database! Please try again!');
mysql_select_db('book');
return $db;
}
The above introduces the usage of put your head on my shoulder php at@ symbol, including the content of put your head on my shoulder. I hope it will be helpful to friends who are interested in PHP tutorials.