语句拼装有关问题

WBOY
Release: 2016-06-13 13:42:43
Original
809 people have browsed it

语句拼装问题
echo ''.$nick.'
';


这个语句输出有问题,应该是拼装问题,

求正确拼装方式,如果有关于这类语句拼装问题的帖子,请推荐一下,3Q。


------解决方案--------------------
注意转义符的使用

$nick='test';
echo ''.$nick.'
';

或者

$nick='test';
echo $nick

html;

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!