求写sscanf的正则表达式 697【代练堂】70-85级★赠4000金五大声望尊敬★纯任务70.0084 原本是这样的,要分隔成如下样子 697【代练堂】70-85级★赠4000金五大声望尊敬★纯任务70.0084 分成四部分
PHP code<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$ts = "697【代练堂】70-85级★赠4000金五大声望尊敬★纯任务70.0084";sscanf($ts, 此处怎么写",$one,$two,$three,$four);echo $one."-".$two."-".$three."-".$four;
再多给几条数据大家分析下:
697【代练堂】70-85级★赠4000金五大声望尊敬★纯任务70.0084
698【代练堂】【S11荣誉战场毕业】全套加武器【秒排2-3天】50.0084
700【代练堂】dnf手工代练刷段刷尊【任意等级-尊2】40.0024
715【代练堂】【1-80级急速招募版】2天完成 全区全服30.0060
716【代练堂】【1-85级包卡135元】送大鸟五大声望尊敬135.00108
------解决方案-------------------- print_r($jj); 贴出结果
------解决方案--------------------
探讨
中文能够正常显示了,但循环无法显示数据 PHP code $client = new SoapClient("http://s.dailiangu.com:8011/WebLocalData.asmx?WSDL"); $p = $client->Return_Package(array('UN'=>'dailiantang','PS'=>'xieyanjobb1306','Top……
Statement: The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn