RE: [PHP] Function and return...
| From: | Matt Williams | Date: | Thu, 27 Jul 2000 10:29:30 +0000 |
| Subject: | RE: [PHP] Function and return... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8517@lists.php.net to get a copy of this message | ||
or even HTTP
:-)
M@
> -----Original Message-----
> From: Matt Williams [mailto:matt@yewlands.com]
> Sent: Thursday, July 27, 2000 11:27
> To: Martin Thoma; php-general@lists.php.net
> Subject: RE: [PHP] Function and return...
>
>
> Try adding
> global $TTHP_COOKIE_VARS;
> inside your function
>
> M@
>
> > -----Original Message-----
> > From: Martin Thoma [mailto:martin@radiok2r.de]
> > Sent: Thursday, July 27, 2000 11:12
> > To: php-general@lists.php.net
> > Subject: [PHP] Function and return...
> >
> >
> > Function and return...
> >
> >
> > The following code works fine:
> >
> > print $HTTP_COOKIE_VARS[$cookie_name];
> >
> >
> >
> > The following code on the same place does not (an empty string is
> > printed):
> >
> > print getCookie($cookie_name);
> >
> > function getCookie($name)
> > { return $HTTP_COOKIE_VARS[$name];
> > }
> >
> >
> > Why ?
> >
> > Regards
> >
> > Martin
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>