1
Vim 2012 年 3 月 11 日
你先确定一下你这代码能跑,然后重新组织一下语言
|
2
Natsuki 2012 年 3 月 11 日
$str= <<<EOT
<form action="" method="post" onclick=<?php function_name('arg1', 'arg2' );?>'; EOT; $item = null; if(preg_match_all("/function_name.*?([\'\"])(.*?)\\1/",$str,$matches)){ $item = $matches[2]; } 根据你的意思只能做到这样子 |
3
Andor_Chen OP |