2011-07-15 48 views
0

棄用:函數eregi_replace()在/var/www/html/domit/xml_domit_parser.php中已棄用,行3302行3302 $ xmlText = eregi_replace('>'。「[[ :space:]] +「。'<','> <',$ xmlText); 任何一個可以幫助我解決這個問題到了preg_replace功能xml domit解析器中的問題

回答

0

只要做到:

<?php 
$xmlText = preg_replace("/>\s*</", '><', $xmlText); 
?> 

\s*匹配任何數量的關閉和打開標籤之間的空格。