Page 1 of 1

What is the "@" for in PHP?

Posted: Fri Feb 13, 2009 9:27 am
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!

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

Posted: Fri Feb 13, 2009 10:02 am
by papa
Supressing errors.

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

Posted: Fri Feb 13, 2009 10:18 am
by John Cartwright