* Thus wrote Ulrik S. Kofod ([EMAIL PROTECTED]):
> but I think it is easier to read the program when using eval as it is more eye
> catching than just an extra $ that is easily missed.
If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus Lerdorf, BDFL of PHP
Cu
Ulrik S. Kofod wrote:
Justin Patrin sagde:
Ulrik S. Kofod wrote:
Why are you using eval? Eval is slow and is a hack... Just do:
$y = $$x;
if(isset($y))
{
echo "$x:$y";
}
}
True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4
times
fas
On Tuesday 15 June 2004 14:14, [EMAIL PROTECTED] wrote:
> Hi,
> I have variables called Cookie1 to Cookie35.
>
> I would like to print the values of Cookie1 to Cookie35 using for loop.
>
> Could anybody correct the below code to print the variables.
>
> ==
> for($i=1;$i
Justin Patrin sagde:
> Ulrik S. Kofod wrote:
>
> Why are you using eval? Eval is slow and is a hack... Just do:
> $y = $$x;
>
>> if(isset($y))
>> {
>> echo "$x:$y";
>> }
>> }
>
True ! I just tested it with both eval and $$, and $$ seems to be about 3 to 4 t
Ulrik S. Kofod wrote:
[EMAIL PROTECTED] sagde:
Hi,
I have variables called Cookie1 to Cookie35.
I would like to print the values of Cookie1 to Cookie35 using for loop.
Could anybody correct the below code to print the variables.
=for($i=1;$i<34;$i++)
{
$x="Cooki
On 15 June 2004 08:25, Ulrik S. Kofod wrote:
> [EMAIL PROTECTED] sagde:
> >
> > Hi,
> > I have variables called Cookie1 to Cookie35.
> >
> > I would like to print the values of Cookie1 to Cookie35 using for
> > loop.
> >
> > Could anybody correct the below code to print the variables.
> >
>
[EMAIL PROTECTED] wrote --- napi'sal::
Hi,
I have variables called Cookie1 to Cookie35.
I would like to print the values of Cookie1 to Cookie35 using for loop.
Could anybody correct the below code to print the variables.
==
for($i=1;$i<34;$i++)
{
$x="Cookie".$i;
[EMAIL PROTECTED] sagde:
>
> Hi,
> I have variables called Cookie1 to Cookie35.
>
> I would like to print the values of Cookie1 to Cookie35 using for loop.
>
> Could anybody correct the below code to print the variables.
>
> =for($i=1;$i<34;$i++)
> {
> $x="Cookie
8 matches
Mail list logo