php error -(Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';')

Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';'

This error occur when a number comes when expecting a string .
For example the following code produces error because a string is concatenated with integer.


<?php
echo "example".1;
?>

0 comments: