I am facing the following error:
PHP Parse error: syntax error, unexpected '[', expecting ')'
The line of code throwing the error is:
$contents = str_replace(["\r\n","\r","\t","\n",' ',' ',' '], '', $contents);
This PHP is within Magento 1.9. I am not familiar with PHP, so I wonder what this code is trying to do or why it would be throwing an error.