PHP and Text Files ^^

Hey guys,

Just wondering how i could make it so that php could save about 50 variables in 1 txt file, and then how i could make php read the txt file and place the data into a the variables againā€¦ I know its possible im just wondering how i could do it without having to make 50 txt files??!
Please help me ^^
Futureness :dog: