Hi,
Tuesday, July 29, 2003, 12:32:33 AM, you wrote:
MP> The following code illustrates a problem I've got with references (running
MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any
MP> assistance!
MP> Martin
MP> $globalvariable = 0;
MP> $one = 1;
MP> //want to set up
Hi,
Tuesday, July 29, 2003, 12:32:33 AM, you wrote:
MP> The following code illustrates a problem I've got with references (running
MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any
MP> assistance!
MP> Martin
MP> $globalvariable = 0;
MP> $one = 1;
MP> //want to set up
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]):
> > -Original Message-
rints 0, not 1
> >
> > function setglobal(&$one)
> > {
> > global $globalvariable;
>
> PHP actually handles this by executing the equivalent of:
>
> $globalvariable = &$GLOBALS['globalvariab
> -Original Message-
> From: Martin Peck [mailto:[EMAIL PROTECTED]
> Sent: 28 July 2003 15:33
>
> The following code illustrates a problem I've got with
> references (running
> on PHP 4.3.2). Can anyone explain it for me? Thanks in
> advance for any
> assistance!
> Martin
>
>
> $glo
4 matches
Mail list logo