Hello and thanks for the reply.
My code:
if($parts[$c]=='Norway') {
$parts[$c]='It works';
//code to modify the csv value in the file
}
Only modifies the variable. I am actually looking to modify the csv file itself.
My real csv file is extremely large so here is an example of how it is setup:
"Bruno","Gammit","Wind"
"John","Stewy","Norway"
Any idea on how I could modify the csv file itself to replace the searched value (in my example "Norway") with the new value (in my example "it works")?
All help is greatly appreciated!