$prefsFile = file("prefs.txt");
$a = $prefsFile;
$action = $_GET[$a];
That is a snippet of a code I am making, and I can say I'm not PHP stupid but this is really perplexing me. $prefsFile works fine, $a even works, but $action doesn't. I tried echoing it but it didn't work. Currently $a is defined as action, and when I go to ?action=meh it won't echo meh or anything. Any ideas?