What does &var mean ?
| From: | Girish Nath | Date: | Thu, 22 Nov 2001 15:43:29 +0000 |
| Subject: | What does &var mean ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75517@lists.php.net to get a copy of this message | ||
Hi
I've been looking at some classes an have come across this notation for
example :
function remove(&$productid) {
/* this function will remove a given product from the cart */
if (isset($productid)) {
unset($this->items[$productid]);
}
}
What does the "&" (ampersand) before the variable name mean ?
Thanks
Girish