johnwayne77 Posted April 29, 2009 Share Posted April 29, 2009 i have a csv with two columns (1) , (2) the columns have identical values in the field set using $content = str_replace($oldcat, $newcat, $content); i need to replace contents only for the (1) column and preserve the (2) columns' original content any idea how i could accomplish that? thanks Link to comment https://forums.phpfreaks.com/topic/156091-edit-csv-str_replace/ Share on other sites More sharing options...
ignace Posted April 29, 2009 Share Posted April 29, 2009 Iterate over all the records and only modify the first column Link to comment https://forums.phpfreaks.com/topic/156091-edit-csv-str_replace/#findComment-821682 Share on other sites More sharing options...
johnwayne77 Posted April 29, 2009 Author Share Posted April 29, 2009 can u be more specific? Link to comment https://forums.phpfreaks.com/topic/156091-edit-csv-str_replace/#findComment-821700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.