01-16-2008, 07:53 AM
[eluser]xwero[/eluser]
the easy way would be
the easy way would be
Code:
$lines = file('/var/www/myproject/myfile.txt'); // gets file in array using new lines character
foreach($lines as $line)
{
$temparr = explode(':'$line);
${$temparr[0]} = trim($temparr[1]);
}