Friend of function??

From: Date: Wed, 18 Sep 2002 21:54:35 +0000
Subject: Friend of function??
Groups: php.general 
Request: Send a blank email to php-general+get-116800@lists.php.net to get a copy of this message
I want to use arrays (that are outside of a function) to be visible to a function. I understand that I must you global. But I was wondering is it possible to make it visible to only certain functions, similar to the 'friend' keyword in C (or C++ ?) ? The reason, is that I don't feel comfortable having globals, (I was brought up that way). Also, if you actually declare something global are there any disadvantages such as performance hits?

« previous php.general (#116800) next »