php 爆炸帮助
我有一个来自文本区域的数据集,
P234324, 2011-03-23 12:34:37 \nP234434, 2011-03-23 13:34:36 \nP438794, 2011-03-23 14:34:36 \nP238924, 2011-03-23 15:34:36 \n
我想将其分解为这个,但是多个 foreach 使我困惑。
$data['P234324'] = "2011-03-23 12:34:37"
$data['P234434'] = "2011-03-23 13:34:36"
$data['P438794'] = "2011-03-23 14:34:36"
$data['P238924'] = "2011-03-23 15:34:36"
I have this data set from a textarea
P234324, 2011-03-23 12:34:37 \nP234434, 2011-03-23 13:34:36 \nP438794, 2011-03-23 14:34:36 \nP238924, 2011-03-23 15:34:36 \n
I would like to explode it to this, but the multiple foreach is throwing me.
$data['P234324'] = "2011-03-23 12:34:37"
$data['P234434'] = "2011-03-23 13:34:36"
$data['P438794'] = "2011-03-23 14:34:36"
$data['P238924'] = "2011-03-23 15:34:36"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这将起作用:
键盘示例
This will work:
codepad example