|
I have a php file that processes a csv file downloading images and replaces a url in it. I am trying to add some code to replace SUV with 123 at the first instance in each row. I have this:
for($i=1;$i<$datalen;$i++)
{
echo str_replace('SUV','123',$i,'1');
...and I'm getting this error:
Fatal error: Only variables can be passed by reference in ... on line 38
All I did to the original functional code was add the line: echo str_replace('SUV','123',$i,'1');
Any help is appreciated.
|