note 40614 added to language.variables

From: Date: Tue, 09 Mar 2004 17:31:40 +0000
Subject: note 40614 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-66509@lists.php.net to get a copy of this message
OK how about a practicle use for this: You have a session variable such as: $_SESSION["foo"] = "bar" and you want to reference it to change it alot throughout the program instaed of typing the whole thing over and over just type this: $sess =& $_SESSION $sess['foo'] = bar; echo $sess['foo'] // returns bar echo $_SESSION["foo"] // also returns bar just saves alot of time in the long run also try $get = $HTTP_GET_VARS or $post = $HTTP_POST_VARS ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40614 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40614&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40614&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66509) next »