php4-beta | 200004
Date: 04/21/00
- Next message: John Steele: "[PHP4BETA] Problems on Win9x PHP4.0RC1 - Logos and session.save_path"
- Previous message: Bob Silva: "[PHP4BETA] Behavior of $GLOBALS array changed?"
- In reply to: Bob Silva: "[PHP4BETA] Behavior of $GLOBALS array changed?"
- Next in thread: Shawn Wallace: "Re: [PHP4BETA] Behavior of $GLOBALS array changed?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well I caught my mistake with the last example.
And my problem as a whole was fixed with a little chop() routine.
Sorry for the first mailing.
Bob
----- Original Message -----
From: "Bob Silva" <bsilva <email protected>>
To: <php4beta <email protected>>
Sent: Friday, April 21, 2000 10:59 AM
Subject: [PHP4BETA] Behavior of $GLOBALS array changed?
> Not sure whats happening here but it sure seems like the behavior of
arrays
> has changed.
>
> I tried finding something about it on zend.com but to no avail.
>
> As I'm sure you know, in PHP3 this would work, however in PHP 4 it does
not.
> I'm sure its for a reason, I just need to know the proper way:
>
> <?
>
> $newrequests = "newrequests";
>
> $str = "newrequests";
>
> echo $GLOBALS[$str]; #<-- Prints it
>
> function Test() {
> echo $GLOBALS[$str]; #<-- Does not
> }
>
> Test();
>
> ?>
>
>
> Thanks, Bob aka Salty```
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
> For additional commands, e-mail: php4beta-help <email protected>
> To contact the list administrators, e-mail: php4beta-admin <email protected>
>
>
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: John Steele: "[PHP4BETA] Problems on Win9x PHP4.0RC1 - Logos and session.save_path"
- Previous message: Bob Silva: "[PHP4BETA] Behavior of $GLOBALS array changed?"
- In reply to: Bob Silva: "[PHP4BETA] Behavior of $GLOBALS array changed?"
- Next in thread: Shawn Wallace: "Re: [PHP4BETA] Behavior of $GLOBALS array changed?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

