I have this code with me and it is giving "aababc" in output i am not sure why this behaving like this.
<?php
$str = ‘abcdefghijklmnop’;
$fp = fopen(“output.txt”, ‘w’);
for($i=0; $i< 4; $i++) {
fwrite($fp, $str, $i);
}
?>
Any Guru having any idea on this.
Thanks