$str=file_get_contents($url);
preg_replace('/^(.*?)a(.*?)b(.*?)$/is','\\2',$str);

解决方案 »

  1.   

    openu ????
    cut ?????user-defined functions ???
      

  2.   

    $file=openu($url);
    substr($file,a,b-a);
    这样可以吗???
      

  3.   

    Are the a and b the numbers of the substring position of the string ?
      

  4.   

    $from='</td></tr></table></td></tr></table><p>';
    $to=$sexname;
    $str2= strip_tags(cut($a,$from,$to));function cut($file,$from,$end){    $message=explode($from,$file);
        $message=explode($end,$message[1]);
        return    $message[0];
    }