Defining own globals

From: Date: Wed, 14 Jan 2004 09:44:57 +0000
Subject: Defining own globals
Groups: php.general 
Request: Send a blank email to php-general+get-174527@lists.php.net to get a copy of this message
Hello, Would it be possible to make all hard-coded variables beginning with $_ automatically global? I've found useful to set some variables per page to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice to get available to all functions without extra procedures (like global command). The best way could be that $_ variables can't be defined by any user-input (forms, cookies etc)... Well, that's a explanation. I hope that someone would give any hint concerning this subject. :) Best regards, Ville

« previous php.general (#174527) next »