+ -
当前位置:首页 → 问答吧 → 请问如何取出前面的字符串

请问如何取出前面的字符串

时间:2010-10-07

来源:互联网

普通·霸王之枪45579789787道具
我想取出“普通·霸王之枪”,请问怎么取?谢谢!

作者: hao3721   发布时间: 2010-10-07

复制代码
  1. $str = "普通·霸王之枪45579789787道具";
  2. preg_match_all("/[".chr(0xa1)."-".chr(0xff)."]+/",$str,$b);
  3. print_r($b);

=700) window.open('http://bbs.php100.com/file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/moz-screenshot.png');" onload="if(this.offsetWidth>'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" >
图片:result.jpg
'700')this.width='700';if(this.offsetHeight>'700')this.height='700';" title="Click Here To EnLarge">

作者: qzw   发布时间: 2010-10-08