$ alines = preg_split(" / = /",$ lines); [英] $alines = preg_split("/=/", $lines);

查看:88
本文介绍了$ alines = preg_split(" / = /",$ lines);的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何我们可以写的东西,以保持正确的txt到=符号
preg_split。来自以下几行


DST-NUMBER-IN = 0033512877596,DST-NUMBER-OUT = 98751#33512877596,

DST-NUMBER-BILL = 0033512877596


i只想要0033512877596,98751#33512877596,0033512877596

is there any thing we can write to keep the right txt to the = sign in
the preg_split. from the following lines

DST-NUMBER-IN=0033512877596, DST-NUMBER-OUT=98751#33512877596,
DST-NUMBER-BILL=0033512877596

i only want 0033512877596, 98751#33512877596, 0033512877596

推荐答案

8月28日星期日2005 17:54:52 -0700,voipcanada写道:
On Sun, 28 Aug 2005 17:54:52 -0700, voipcanada wrote:
我们可以写任何东西来保持正确的txt到=
preg_split。来自以下几行

DST-NUMBER-IN = 0033512877596,DST-NUMBER-OUT = 98751#33512877596,
DST-NUMBER-BILL = 0033512877596

我只想要0033512877596,98751#33512877596,0033512877596
is there any thing we can write to keep the right txt to the = sign in
the preg_split. from the following lines

DST-NUMBER-IN=0033512877596, DST-NUMBER-OUT=98751#33512877596,
DST-NUMBER-BILL=0033512877596

i only want 0033512877596, 98751#33512877596, 0033512877596




我相信已经回答了这个问题。你是什​​么意思保持正确的

txt到=符号?


-
http://www.mgogala.com



I believe that already answered this. What do you mean by "keep the right
txt to the = sign"?

--
http://www.mgogala.com


到目前为止,没有人回答这个问题,我需要知道确切的代码是

写的,亲切的问候

no one answered this till now, i need to know the exact code to be
written ,, kind regards




您可以使用preg_replace()代替:

代码:

----------------- ---


You could use preg_replace() instead:
Code:
--------------------


这篇关于$ alines = preg_split(" / = /",$ lines);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆