jkb3614 Posted November 18, 2009 Share Posted November 18, 2009 so basically i have a page of inline data where one line (x) needs to be edited. i have everything set up EXCEPT... i need help on how to write the first variable of an array through the line before line "x". i.e. something along the lines of fwrite($rex[0-(x-1)]) but of course this doesn;t work i split the whole file into an array using file() also i'm not the greatest with php can anyone help? Link to comment https://forums.phpfreaks.com/topic/181953-fwrite-arrays-0-thru-x-1/ Share on other sites More sharing options...
mikesta707 Posted November 18, 2009 Share Posted November 18, 2009 if you want to write the line before the line of index x, then just do fwrite($rex[$x-1]); Link to comment https://forums.phpfreaks.com/topic/181953-fwrite-arrays-0-thru-x-1/#findComment-959739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.