c1a1o1
版主
  
一品带刀护卫
UID 68669
精华
0
积分 8936
帖子 2357
金钱 8936 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2006-2-17
状态 离线
|
[推荐阅读] 被这个问题逼疯了,各位给我想个法子
<?php $foo =<<< EOT <?php heoll word ! ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <title>电脑报CPCW社区 电脑学习/在线答疑社区 - 编程魔方 - 已解决 - powered by Discuz!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"> <meta name="keywords" content="Discuz!,Board,全国发行量第一的计算机报 - Discuz! Board"> <meta name="generator" content="Discuz! 4.1.0 with Templates 4.0.0"> <meta name="MSSmartTagsPreventParsing" content="TRUE"> <meta http-equiv="MSThemeCompatible" content="Yes">
<style type="text/css"><!-- a { text-decoration: none; color: #003366 } --></style><script language="JavaScript" src="include/common.js"></script> </head>
<body leftmargin="0" rightmargin="0" topmargin="0" onkeydown="if(event.keyCode==27) return false;">
<table bgcolor="#EDEFF1" width="98%" cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td>test</td> <tr> </table> </body></html>
EOT; preg_match_all('|<?[^>]*?>|i', $foo, $bar); print_r($bar); ?> Array
(
[0] => Array
(
[0] => <?php
heoll word !
?>
)
)
|  生日礼物送什么www.feichanglipin.cn
生日礼物 补肾 |
|