Hey all, I created a new file which is writing ID’s numbers.
When I’m deleting the ID’s there are blank rows left in the actual file, I’m trying to remove it but it doesn’t work.
Here is how I’m trying to remove it:
$contents2 = file_get_contents($myFile);
$contents2 = preg_replace(’/\s+/’, ‘’, $contents2);
file_put_contents($myFile, $contents2);
Please advise