So here is basically what i want to do, say var.txt is = :
bar
foo
smooth
green
then say i run a code like this in php to grab a random line:
$mineloc = file("var.txt");
$mineacc = $mineloc[array_rand($mineloc)];
what would i do then to remove the line that shows up in $mineacc
from var.txt which will result in var.txt being this if the word smooth
was generated:
bar
foo
green