Re: making all variables global for use within a classes methods
| From: | Martin | Date: | Fri, 08 Sep 2000 11:30:11 +0000 |
| Subject: | Re: making all variables global for use within a classes methods | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15855@lists.php.net to get a copy of this message | ||
The only easy way I know would be to put them all in one array
("str_string_name" => "String") and make the array global in every
method.
Martin
Jesper Hess Nielsen wrote:
>
> I have a system where all language-specific text strings are stored in an include file in the
> format
> $str_string_name = "String";
>
> Is there a way of making the entire contents of this file global so I can use the strings
> inside the methods in a class?
>
> /Jesper