Re: Anyone Up?

From: Date: Fri, 01 Feb 2002 08:49:55 +0000
Subject: Re: Anyone Up?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-83084@lists.php.net to get a copy of this message
* hugh danaher (hdanaher@earthlink.net) [Feb 01. 2002 03:44]: > I learned it as: echo ${"check".$i}; Works the same way. If you want to get really picky: echo ${'check'.${i}}; > and then was told to use an array... > as in: > echo $check[$i]; The circumstances must have been different. As of php 4.1.0, over here, that returns nothing in this context: <?php $i = '384'; $Check = 'Checkbox'; $Check384 = 'Combined'; print $Check[$i]; /* prints nothing */ ?> -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 Avoid strange women and temporary variables.

« previous php.general (#83084) next »