Re: Package Proposal: Console_Colors
| From: | Stefan Walk | Date: | Tue, 22 Apr 2003 02:46:45 +0000 |
| Subject: | Re: Package Proposal: Console_Colors | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15304@lists.php.net to get a copy of this message | ||
On Tue, Apr 22, 2003 at 09:11:28AM +0800, Alan Knowles wrote:
> One little comment - choose to ignore or not :) +1 either way..
>
> for the fixed colcode/stylecode etc. arrays try just using
> $GLOBALS['_CONSOLE_COLOR']['colcode']
> and
> global $_CONSOLE_COLOR;
>
> until PHP has real static's (PHP5) - thats the best we've got really. -
>
>
> Regards
> Alan
>
Well, I've been telling beginners not to use global/$GLOBALS for ages ;)
But you're right, it would probably speed it up a bit and make the code
easier to read. I'll see what I will do.
Regards
Stefan Walk