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;
?>
Showing posts with label php errors. Show all posts
Showing posts with label php errors. Show all posts
php error -(Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';')
php errors- (Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';')
2. Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';'
This error occurs when a semicolon missing
For example following code produces this error because of missing a semicolon in second line
<php
echo $s
?>
php errors- Parse error: syntax error, unexpected T_ECHO
Errors are very helpful to programmers .When you identifies cause of error next time that error will not be a challenge for you.
Here i am providing some common errors
1.Parse error: syntax error, unexpected T_ECHO
This error is due to some unidentified symbol or character in code
For example following code produces the above error because of "character x" in code
<?php
x
echo "error example";
?>
Subscribe to:
Posts (Atom)



