Variable question...

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
windwaker
Forum Newbie
Posts: 21
Joined: Sun Feb 13, 2005 11:18 am

Variable question...

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

http://php.net/language.operators

& = reference
@ = error supression
windwaker
Forum Newbie
Posts: 21
Joined: Sun Feb 13, 2005 11:18 am

Post by windwaker »

Language operators, eh?

Thanks man.
Post Reply