i would like to store a string into a .php file,but as such , its a php script itself , in which i would like to add array(s),but so far i always append string like this
<?php
$.....
....
?>
but i would like to only add the content without opening and closing new block of code. so to have only one opening and closing of script , thus appending before the actual end of file. How can i efficiently move the pointer like this ?
my function so far looks like this
$fw = fopen('../Resource/articlelist.php',"a");
.....
fwrite ($fw,$diffWrite);