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 Quote 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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/156091-edit-csv-str_replace/#findComment-821700 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.