Re: [PHP] Accessing lots of variables

2001-09-25 Thread Jason G.
Try This... for($i=1; $i<=35; $i++) { $sVarName = "link$i"; if(empty($$sVarName)) { //Do Something } else { //Do Something Else using $$sVarName... } } -Jason Garber deltacron.com At 01:42 PM 9/25/2001 -0400, Jordan Elver wrote: >Hi, >I'm feeling a

Re: [PHP] Accessing lots of variables

2001-09-25 Thread Andrey Hristov
for ($i=1;$i<36;$i++){ if (${"link".$i}){ //it's real }else{ // none } } Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Jordan Elver" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: