美文网首页
php 字符串拼接

php 字符串拼接

作者: CoderZb | 来源:发表于2018-12-20 20:08 被阅读1次

事例1

 $StrA = "Coder";
 $StrB = $StrA."ZB";
 var_export($StrB);

输出CoderZB


事例2

$StrA = "Year ";
$StrC = "Day ";
var_export('Date '.$StrA.'Month '.$StrC);

输出'Date Year Month Day '

相关文章

网友评论

      本文标题:php 字符串拼接

      本文链接:https://www.haomeiwen.com/subject/yoyekqtx.html