CS Electrical And Electronics
@cselectricalandelectronics

Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\phpcs\variable.php on line 53

All QuestionsCategory: PHPParse error: syntax error, unexpected '=' in C:\xampp\htdocs\phpcs\variable.php on line 53
chetan shidling asked 4 years ago

How to fix this error?

1 Answers
chetan shidling answered 4 years ago

If you use % in a variable, then you will face this type of error.
 
For example:
 

<?php $name% = “chetan”; echo $name%;?>

 
remove % to fix the error.