Page 1 of 1

Variable question...

Posted: Sat Feb 19, 2005 11:17 pm
by windwaker
What's the difference between $var and &$var? What does an ampersand do in that situation?

Also, what's the difference between @mysql_fetch_array() and mysql_fetch_array(), and other places where @ is used?

Posted: Sat Feb 19, 2005 11:27 pm
by feyd
http://php.net/language.operators

& = reference
@ = error supression

Posted: Sat Feb 19, 2005 11:39 pm
by windwaker
Language operators, eh?

Thanks man.