note 14761 rejected and deleted from language.references.php by alindeman
| From: | alindeman@php.net | Date: | Mon, 13 Aug 2001 21:17:16 +0000 |
| Subject: | note 14761 rejected and deleted from language.references.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16662@lists.php.net to get a copy of this message | ||
The reason the above-mentioned $ref assignment doesn't work is because of a peculiarity with
the "global" keyword.
global $ref;
Actually makes a new variable $ref which refers to the same item as the external $ref variable.
When you change the $ref value in the function, you are changing *its* reference but not the
external one.