I am trying to use the Linux sed command to replace associative array values in a PHP config file. On macOS everything goes ok, but on linux I am getting an error.
Command
sed -i .back "s/'param'.*=>.*/'param' => 'value',/" config.php
Error (linux): sed: -e expression #1, char 1: unknown command: `.'
What proper solution would there be to replace PHP array values with the sed command?