$s = "福建热线";
preg_match("/(URL)=(.+)\](.+)\[\/\\1\]/",$s,$regs);$type = $regs[1];
$address_url = $regs[2];
$address_index = $regs[3];

解决方案 »

  1.   


       $temp_file="福建热线";
       list($F_FileName,$L_FileName)=split("]",$temp_file,2);
       echo $F_FIleName."<br>";
       echo $L_FIleName."<br>";
       不写了
       累
       以下自己照着写吧
        
      

  2.   

    真是晕,早上由于网络不好,没发出来,现在补上的吧。
    <?
    $str = "福建热线";
    preg_match_all("/\[(url)=(.*)\](.*)\[\/url\]/isU",$str,$array);$type = $array[1][0];
    $address_url = $array[2][0];
    $address_index = $array[3][0];
    ?>