php代码分割字符串 [英] Php code to split a string
本文介绍了php代码分割字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要一个PHP代码来分隔字符串...
我的字符串是"2012-11-21T09:17:21.048ZSuccess799E799_CORE_BUNDLED_15523174_R1"
我只需要从此字符串中拆分成功...
请帮助我做到这一点...
Hi all,
I need a php code to separate a string...
my string is "2012-11-21T09:17:21.048ZSuccess799E799_CORE_BUNDLED_15523174_R1"
I need to split only success from this string...
Please help me to do this...
推荐答案
请参阅我的答案以及其他类似问题的答案:PHP剪切了一部分字符串 [
See my answer and others to a similar question: PHP cut a part of string[^]
报价:
以下是PHP中可用的字符串操作函数: http://php.net/manual/zh-cn/ref.strings.php [ ^ ].
您正在寻找的是 substr [
Here are string manipulation function available in PHP: http://php.net/manual/en/ref.strings.php[^].
The one you are looking is for substr[^].
这篇关于php代码分割字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文