//替换图片Alt为文档标题$this->Fields['body'] = str_ireplace(array('alt=""','alt=\'\''),'',$this->Fields['body']);$this->Fields['body'] = preg_replace("@ [\s]{0,}alt[\s]{0,}=[\"'\s]{0,}[\s\S]{0,}[\"'\s] @isU"," ",$this->Fields['body']);$this->Fields['body'] = str_ireplace("<img " ,"<img alt='".$this->Fields['title']."' ",$this->Fields['body']);echo '<script lanuage="javascript">';echo 'alert("?");'; //输出$this->Fields['body']echo '</script>';这里输出如何写?又比如说这个$body = str_ireplace(array('alt=""','alt=\'\''),'',$body); echo '<script lanuage="javascript">';echo 'alert("?");'; //输出$body,PHP中的连接符是什么?echo '</script>';
2 回答
- 2 回答
- 0 关注
- 1400 浏览
添加回答
举报
0/150
提交
取消