Forum Moderators: coopster
I have some code that rewrites a data.txt file, in order to change just two values in one of the 10 lines.
I've played with array_splice , but that doesnt seem to do it;
i would like someting like this :
if ($x = $data[0]) { $data[4]=10 ; $data[5]=20 }
*leaving $data[6],7,8 un-touched
i think it shouldnt be to tough?, but again i cant get it right! :S