php正则匹配一段文字 很简单 60分
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <span class="ball-type-1"> <var>1</var> <var>2</var> <var>3</var> <var>4</var> <var>5</var> </span>
<?php $str = <<<html <span class="ball-type-1"> <var>1</var> <var>2</var> <var>3</var> <var>4</var> <var>5</var> html; preg_match_all('#<var>(\d+)</var>#i', $str, $arr); print_r($arr[1]); <div class="clear"> </div>