note 106208 deleted from language.references.pass by googleguy

From: Date: Sun, 23 Feb 2014 17:19:22 +0000
Subject: note 106208 deleted from language.references.pass by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198605@lists.php.net to get a copy of this message
Note Submitter: jocelyn dot heuze at gmail dot com ---- Please note that you can't pass NULL to a function by reference, unless it's as a default value. <?php function foo(&$a = NULL) { if ($a === NULL) { echo "NULL\n"; } else { echo "$a\n"; } } foo(); // "NULL" foo(5); // "5" foo(NULL); // Produces an error ?>

« previous php.notes (#198605) next »