How would I write a function to read a certain line from a file based upon an argument passed when the function was run?
IE:
echo lineread(1);
function lineread($x) {
$file = fopen("links.inc", "r");
return line($x,$file);
}
I've gotten it working with a while loop to check when it reaches a certain increment, but that doesn't seem very efficient?