Jump to content

edit csv / str_replace


johnwayne77

Recommended Posts

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

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.