What is the "@" for in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malukisses
Forum Newbie
Posts: 1
Joined: Fri Feb 13, 2009 9:25 am

What is the "@" for in PHP?

Post by malukisses »

recently I had a problem migrating code from PHP 4 to 5, and i solved it using "@mysql_fetch_array($result)".

PHP4 code: mysql_fetch_array($result) , working fine

PHP5 code: @mysql_fetch_array($result)

What is this "@" for? I couldn't find it in the manual...

Thanks!
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: What is the "@" for in PHP?

Post by papa »

Supressing errors.
Post Reply