Re: hard(?) syntax problem
| From: | DvDmanDT | Date: | Tue, 04 Nov 2003 17:56:37 +0000 |
| Subject: | Re: hard(?) syntax problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168490@lists.php.net to get a copy of this message | ||
You could try
$tmp=constant("PL_ORT");
$value=$tmp[$key];
But I doubt it'll work..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"Adam I Agnieszka Gasiorowski Fnord" <agquarx@venus.ci.uw.edu.pl> skrev i
meddelandet news:3FA7CFB3.97D6322@venus.ci.uw.edu.pl...
>
> I want to access a value of an array
> by key, but the array is not a variable
> - it is a constant.
>
> How do I do it?
>
> I tried
>
> $value = PL_ORT[$key];
>
> , but this doesn't work (parse error)...
>
> I even tried
>
> $value = {PL_ORT[$key]};
>
> --
> Seks, seksiæ, seksolatki... news:pl.soc.seks.moderowana
> http://hyperreal.info { iWanToDie } WiNoNa ) (
> http://szatanowskie-ladacznice.0-700.pl
foReVeR( * )
> Poznaj jej zwiewne kszta³ty... http://www.opera.com 007