note 109465 deleted from function.isset by googleguy

From: Date: Sat, 19 Jan 2013 03:41:49 +0000
Subject: note 109465 deleted from function.isset by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193223@lists.php.net to get a copy of this message
Note Submitter: kefirowocowy at ymail dot com ---- Using pass-by-reference function can modify variable you pass. If you gonna ask for array key which don't exist it will be created containing NULL. Function don't even have to touch variable, it's done calltime. Surprising but true. PHP 5.3.2-1 <?php function issetor(&$v){} $a = array(); print_r($a); issetor($a['key']); print_r($a); ?> Outputs Array ( ) Array ( [key] => )

« previous php.notes (#193223) next »