全球主机交流论坛
标题:
php代码字符串跟变量组合规范,帮我看看
[打印本页]
作者:
rightnow5
时间:
2012-12-5 14:54
标题:
php代码字符串跟变量组合规范,帮我看看
include(str_replace('.yiqimai.baidu.com', '', $host ).".html");
复制代码
php代码
现在是 $host.html
我现在想组合 /html/$host.html
我写的不规范,正确应该怎么写?
作者:
九七互联
时间:
2012-12-5 14:56
楼下知道
作者:
菊花肿了
时间:
2012-12-5 15:02
看不懂 没表达清楚
http://www.w3school.com.cn/php/func_string_str_replace.asp
作者:
scand
时间:
2012-12-5 15:21
$host换成
'/html/'.$host
复制代码
试试
欢迎光临 全球主机交流论坛 (https://443502.xyz/)
Powered by Discuz! X3.4