note 28501 deleted from language.variables by googleguy

From: Date: Mon, 11 Feb 2013 05:18:29 +0000
Subject: note 28501 deleted from language.variables by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193593@lists.php.net to get a copy of this message
Note Submitter: unleaded at nospam dot unleadedonline dot net ---- References are great if you want to point to a variable which you don't quite know the value yet ;) eg: <?php $error_msg = &$messages['login_error']; // Create a reference $messages['login_error'] = 'test'; // Then later on set the referenced value echo $error_msg; // echo the 'referenced value' ?> The output will be: test

« previous php.notes (#193593) next »