全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1256|回复: 3

[Windows VPS] php代码字符串跟变量组合规范,帮我看看

[复制链接]
发表于 2012-12-5 14:54:58 | 显示全部楼层 |阅读模式
  1. include(str_replace('.yiqimai.baidu.com', '', $host ).".html");
复制代码
php代码
现在是 $host.html
我现在想组合  /html/$host.html
我写的不规范,正确应该怎么写?
发表于 2012-12-5 14:56:13 | 显示全部楼层
楼下知道
发表于 2012-12-5 15:02:49 | 显示全部楼层
看不懂 没表达清楚

http://www.w3school.com.cn/php/func_string_str_replace.asp
发表于 2012-12-5 15:21:30 | 显示全部楼层
$host换成
  1. '/html/'.$host
复制代码
试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-17 11:30 , Processed in 0.116495 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表