I have a file that looks like this:
id,filename,lastname
1234,aron,shushu
1221,moshe,sis
And I wanted to for example change the name of id "1221" to "minim", Anyone know how to do this in PHP?
I tried to split it with explode like this:
$str1 = explode("\n",$str);
$str2 = explode(",",$str1);
And I just did not succeed I just can not come up with the right solution I was looking for a lot