Home > Backend Development > PHP Tutorial > PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WH_PHP教程

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WH_PHP教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:54:57
Original
1356 people have browsed it

At the beginning of the program, the error encountered was:

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/developer/pp1/8-22.php tutorial on line 5, referer: http://localhost/developer/pp1 /form_input.html, I checked it online and it was said to be a syntax error. I checked the syntax and found that the echo statement in the last line of group 8-22.php is correct. It should be changed to:

echo"The product will arrive within three days".$_GET['address']."

";

The other 8-22.php code is:

echo $_GET['company']."Hello:

";
echo "Thank you for ordering our products".$_GET['amount'].",";
echo "Total payment".($_GET['amount']*100)."Yuanzheng.

";
echo"The product will arrive within three days$_GET['address']

";
?>

html code


Company name


Company address


Order product quantity






www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632281.htmlTechArticleAt the beginning of the program, the error encountered is: PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/developer/...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template