数组得值的奇怪问题
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->、 Array ( [title] => 迅雷电视剧 [encoding] => gbk [listlink] => <div class=\"operbox\"><a class=\"on\" href=\"([\s\S]*?)\" [listpicstr] => _src=\"([\s\S]*?)\" [listname] => _src=\"([\s\S]*?)\" [replace] => Array ( [listname] => <\[^>\]+>$$$ [vodname] => <\[^>\]+>$$$ [actor] => <\[^>\]+>$$$ [director] => <\[^>\]+>$$$ [content] => <\[^>\]+>$$$ [vodpic] => <\[^>\]+>$$$ [continu] => <\[^>\]+>$$$ [area] => <\[^>\]+>$$$ [playtime] => <\[^>\]+>$$$ [grade] => <\[^>\]+>$$$ [url] => <\[^>\]+>$$$ ) [name] => <strong class=\"movieDetail_tt\">([\s\S]*?)<\/strong> [actor] => <li>([\s\S]*?)<\/a><\/li> [director] => <p><strong>导演:<\/strong>([\s\S]*?)<\/p> [content] =><div class=\"box_con box_con_movieinfo\">([\s\S]*?)<a target=\"_blank\" [pic] => [continu] => [area] => <li>标签:([\s\S]*?)<\/li> [playtime] => <p><strong>片长:<\/strong><span>([\s\S]*?)分钟<\/span><\/p> [grade] => [language] => <ul id=\"ul_subLabel\" class=\"diversity_white_ul \">([\s\S]*?)<\/ul> [year] => <p><strong>上映:<\/strong>([\s\S]*?)<\/p> [urlname] => title=\"([\s\S]*?)\" [urllink] => <a href=\"([\s\S]*?)\" title= [url] => [submit] => 确定 )
$a ="[b] <div class=\"box_con box_con_movieinfo\">([\s\S]*?)<a target=\"_blank\"[/b]"; $b = htmlspecialchars($a); $c = array(123,$b,array($b)); print_r($c); /* -------- 输出 --------*/ Array ( [0] => 123 [1] => [b] <div class="box_con box_con_movieinfo">([\s\S]*?)<a target="_blank"[/b] [2] => Array ( [0] => [b] <div class="box_con box_con_movieinfo">([\s\S]*?)<a target="_blank"[/b] ) ) <br><font color="#e78608">------解决方案--------------------</font><br>
$a ="[b] <div class=\"box_con box_con_movieinfo\">([\s\S]*?)<a target=\"_blank\"[/b]"; $b = htmlspecialchars($a); $c = array(123,$b,array($b)); $d = htmlspecialchars_decode($c[2][0]); echo "d-->>".$d."<br>"; /*输出,浏览器界面已将标签解析*/ d-->>[b] ([\s\S]*?) /*源码*/ d-->>[b] <div class="box_con box_con_movieinfo">([\s\S]*?)<a target="_blank"[/b]<br> <div class="clear"> </div>