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? Quote 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]); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.