Blogger Information
Blog 2
fans 0
comment 0
visits 1177
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
4月11日作业
Original
502 people have browsed it

今天是二阶段的第一天学习!

作业:PHP对字符串的处理规则

代码

$title1 = '单引号原样输出{$SMS}!';

$title2 = "双引号解析内容包含变量{$SMS}";

echo "用转义字符:反斜线,将原字符进行转义,使其失去原有的作用"

回车\r,换行符\n,制表符\t,美元符\$

heredoc结构相当于双引号

$heredoc = <<< HEREDOC

这是第一次的作业比较匆忙{$bianliang}

HEREDOC;

nl2br相当于单引号

$nowdoc = <<< 'NOWDOC'

www.php.io<h1>$bianliang<h1>

NOWDOC;


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post