My php code is as follows:
<?php
$rates = [
'mmcm' => 0.1,
'mmin' => 0.03937,
'cmmm' => 10,
'cmin' => 0.393701,
'incm' => 2.54,
'inmm' => 25.4
];
echo $rates['mmcm'];
For some reason this is returning the error:
PHP Parse error: syntax error, unexpected '0.03937' (T_DNUMBER), expecting ']' in /home/PfgEBQ/prog.php on line 5
Why am I getting that error?