note 14761 added to language.references.php

From: Date: Mon, 13 Aug 2001 21:12:11 +0000
Subject: note 14761 added to language.references.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16661@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. http://www.php.net/manual/en/language.references.php

« previous php.notes (#16661) next »