本帖最后由 xx0xx0000 于 2010-09-16 23:45:26 编辑

解决方案 »

  1.   

     $sString = 'br />liupeng<br />[email protected]';
       preg_match_all("/\S[a-zA-Z0-9]+@\w{2,4}.\w{2,4}/i", $sString, $aMatch);
      print_r($aMatch[0]);
    //echo "<hr>";
    echo $aMatch[0][0];看看这样可以不。
      

  2.   

    按这个方法得到的结果是这样的Array ( [0] => [email protected] [1] => [email protected] [2] => [email protected] [3] => [email protected] ) Array 
    怎么能把这么多信箱地址 变成一个啊?
      

  3.   

    Array ( [0] => [email protected] [1] => [email protected] [2] => [email protected] [3] => [email protected] ) [email protected] 结果是这样的
      

  4.   

    多个变一个,这太容易了,方法也很多,我说个最本的方法,你先对数据进行统计用count($aMatch[0])),然后用一个for语句,输出来就可以的啊,for($i=0;$i<=count($aMatch[0]));$I++){echo $aMatch[0][$i];}  整体思路这样,具体的你慢慢调一下。