From text file to string
Posted on 2005-04-09
I have text file, elements.txt contents like:
I need to generate from that list a variable like:
$elements = "pressKit,pressPhoto,soundSample,biography";
I'm pretty sure I need to use array code of some kind, but still haven't gotten around to figuring out the whole array thing yet. Also not really sure on how to convert from a one element per line format, to a comma seperated format.