Jump to content

nested "while" loop


TobesC

Recommended Posts

I have a situation where different variable values cause a different variable to have a word value.

 

switch ($a) {

case 1: $var="var1"; break;

case 2: $var="var2"; break;

etc.

}

 

is there a way i can write a while loop to read a text file inside the switch statement to save myself some time?

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/129519-nested-while-loop/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.