Where Did The Comma Go?

<?php

echo 1,34 . ' euros';

It took me way too long to figure out this one. In certain cultures, the comma , is the decimal separator. And here, it looks all good, in particular since there is a dot . afterwards.

echo does not need the parenthesis, as it is a language construct. In fact, the parenthesis would have prevented the error here, since there cannot be commas inside them.

See Also

PHP Features

Last updated: 14 July 2026