$html = str_replace('{标题}' , $this->cache['keys'][$this->id], $html);
$this->cache['kexs'] 我需要把这加上去 谁能帮助我啊
不明白是什么意思?
$this->cache['kexs'] 不是一个数组么
不明白是什么意思?
$this->cache['kexs'] 不是一个数组么
$html = str_replace('{标题}' , $this->cache['keys'][$this->cache['kexs']][$this->id], $html);
我这样加上去不正确啊
你 print_r($this->cache['kexs']); 贴出结果
然后再说明要把那些内容替换进去
不明白是什么意思?
$this->cache['kexs'] 不是一个数组么
$html = str_replace('{标题}' , $this->cache['keys'][$this->cache['kexs']][$this->id], $html);
我这样加上去不正确啊
$html = str_replace('{标题}' , $this->cache['keys'][$this->id], $html);
$html = str_replace('{标题1}' , $this->cache['kexs'][$this->id], $html);
这样能显示 keys 对应的 ID 和 kexs对应的ID是一样的 我就是想
keys 和 kexs 用一组输出去 比如
$html = str_replace('{标题}' , $this->cache['keys'][$this->id][$this->cache['keys'][$this->id]]], , $html);
只不过我这样加进去不显示
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号