Parse error: syntax error, unexpected T_LNUMBER_PHP教程

WBOY
Release: 2016-07-13 10:54:58
Original
2001 people have browsed it

Parse error: syntax error, unexpected T_LNUMBER

//First of all, there is a problem with your variable assignment. If str_replace() is not performed, an error will be reported
$a = '"The female teacher tried her best to prove to the children that the importance of learning good homework. The female teacher tried her best to2222222222 The importance of good homework. The female teacher strives to prove to the children the importance of learning good homework. The female teacher strives to prove to the children the importance of learning good homework. The female teacher strives to prove to the children the importance of learning good homework. Prove it to the kids"';

Failure prompt $a=""; Error Parse error: syntax error, unexpected T_LNUMBER

Correct method

Method 1

echo str_replace(array('"',"'","‘","'"),"",$a);

Method 2

str_replace("'""","",$a)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632271.htmlTechArticleParse error: syntax error, unexpected T_LNUMBER ?php tutorial//First of all, there is a problem with your variable assignment. An error will be reported when str_replace() $a = 'The female teacher tried her best to prove to the children...
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!