note 7302 deleted from Variable scope by ronabop

From: Date: Fri, 25 Aug 2000 08:51:06 +0000
Subject: note 7302 deleted from Variable scope by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3173@lists.php.net to get a copy of this message
I have spent *COUNTLESS* hours debugging scripts just becouse of outer variables being invisible.. say i have a global var called $ADMINEMAIL i am used to use it all over.. then i use it inside a function and of course i get no output. Of course the compiler doesnt say anything about it..and this is pure nonsense. I mean pascal exists for a reason and that is to give an example on how things can eleganly go. Those who things global variables are nonsense are probably kids who all the experience they have is from stuck up college books. In 10 years of programming i maybe had 1 bug due to some wrong variable visibility while in 3 months of PHP i have had COUNTLESS already! to conclude this.. PHP people PLEASE make a directive that makes a variable VISIBLE anywhere (global that is) ! (or add standard variable scoping like PASCAL or c)

« previous php.notes (#3173) next »