Jump to content

[SOLVED] Replacing "Co.Kildare," with "Co.Kildare"


mikebyrne

Recommended Posts

I have a comma separated file with all rows ending with the word Co.Kildare but on a large number of theses rows the word appears with a comma at the end ie Co.Kildare,

 

How could I code the replacement of Co.Kildare, with Co.Kildare?

 

<?php
$test = file_get_contents("C:\Users\Mike\Desktop\AthyDB.txt");

Replacement code??

file_put_contents('C:\Users\Mike\Desktop\test.txt', $test);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.