Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: SV: RE: Using $GLOBALS in a function within a class


Message #1 by "Datatal AB - Gauffin, Jonas" <Jonas@d...> on Thu, 10 Oct 2002 17:14:15 +0200
Nope. No _.

My bet is that $_GLOBALS["msg_no"] isnt set.
Test this: echo isset($_GLOBALS["msg_no"]) ? "msg_no is set!" : "msg_no 
is NOT set";

> -----Ursprungligt meddelande-----
> Fr=E5n: Vincent, Justin [mailto:J.Vincent@e...]
> Skickat: den 10 oktober 2002 13:19
> Till: professional php
> =C4mne: [pro_php] RE: Using $GLOBALS in a function within a class
>
>
> > $this->msg_no =3D $GLOBALS["msg_no"];
>
> Not sure if this is it but that should read..
>
> $this->msg_no =3D $_GLOBALS["msg_no"];
>
> With the _
>
> Justin.
>
>
>

  Return to Index