Fw: Something ease... I guess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- 
From: "Muhammed Mamedov" <muhammed@xxxxxxxxxx>
To: "Nikos Gatsis" <nikos@xxxxxxx>
Sent: Tuesday, December 16, 2003 3:56 PM
Subject: Re:  Something ease... I guess


> you will need dynamic variable construction..
> use this
> for($i=1;$i<5;$++) {
>     $tmp = "check".$i;
>     echo $$tmp; //will print $check1, 2,3,...
> }
> 
> this should work.
> 
> Regards,
> Muhammed Mamedov
> 
> ----- Original Message ----- 
> From: "Nikos Gatsis" <nikos@xxxxxxx>
> To: "PHP-mailist" <php-db@xxxxxxxxxxxxx>
> Sent: Tuesday, December 16, 2003 3:44 PM
> Subject:  Something ease... I guess
> 
> 
> > Hello list
> > 
> > I have 4 variables, $check1, $check2, $check3, $check4
> > 
> > How can i use a for loop to echo each one.
> > 
> > (lets say echo $check($i)...)
> > 
> > Thanx
> > 
> > -- 
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux