i'm doing something like the following
Code:
$dictionary=array(
1=>"word1",
2=>"word2",
3=>"word3",
4=>"word4",
5=>"word5",
6=>"word6");
I might change the contents anytime, inserting a word between 1 & 2, or moving word3 to be displayed after word5 etc..
it's very troublesome to change a code everytime,
so is there anyway that i can read from a conf file, and insert everyline from conf file to the array?
i only have to write:
word1
word2
word3
word4
word5
word6
in my conf file, and it will be inserted into my array according to the sequences in the conf file.
thanks