Re: [PHP] assign values to variables, all taken from txt file

2001-05-15 Thread Alain
So now my code looks like: --- $configuration_data = file("configuration.txt"); for($index=0; $index < count($configuration_data); $index++) { $line = explode(" // ",$configuration_data[$index]); $value = $line[0]; $variable = $line[1]; $$variable = $value; echo "$v

Re: [PHP] assign values to variables, all taken from txt file

2001-05-15 Thread Tobias Talltorp
>From what I could see you want variable variables $value = $line[0]; $variable = $line[1]; $$variable = $value; // Tobias ""Alain"" <[EMAIL PROTECTED]> wrote in message 9dqrh1$23a$[EMAIL PROTECTED]">news:9dqrh1$23a$[EMAIL PROTECTED]... > Hello, > I am trying to get values assigned to variables,