摘要: 功能: 成对匹配html标签对, 跟javascript的$.getElementById() 方法 一样.多层嵌套也很ok不使用递归方法,而是利用栈的知识,通过位置回退方法、顺序进行匹配关闭标签。eg:<?php$str = ' <div id="left" class="*xxx" style="float: left;width:520px; height: 200px; " > <div class="new_model1"> <p> <a href= 阅读全文
posted @ 2012-10-27 19:22 王奇疏 阅读(2270) 评论(3) 推荐(0) 编辑