substr() subspring() 我知道他们的使用区别 但是在实际应用中有什么区别么?
Is there any difference between substr() subspring() in actual use? -PHP Chinese website Q&A-substr() Is there any difference between subspring() in actual use? -PHP Chinese website Q&A
Please watch and learn.
substr方法用于返回一个从指定位置开始的指定长度的子字符串。stringObject.substr(start [, length ])
subspring()用于提取字符串中介于两个指定下标之间的字符 substring(start,end)
如果不知道长度就只能用substring了
Is there any difference between substr() subspring() in actual use? -PHP Chinese website Q&A-substr() Is there any difference between subspring() in actual use? -PHP Chinese website Q&A
Please watch and learn.
substr方法用于返回一个从指定位置开始的指定长度的子字符串。stringObject.substr(start [, length ])
subspring()用于提取字符串中介于两个指定下标之间的字符 substring(start,end)
如果不知道长度就只能用substring了