当前位置:Gxlcms > PHP教程 > 有关字符串的提取

有关字符串的提取

时间:2021-07-01 10:21:17 帮助过:4人阅读

有一个字符串:

$content="1+ssdsddss";

请问如何用php string函数提取出"1+",谢谢。(初学者,请耐心回答,谢谢)

回复内容:

有一个字符串:

$content="1+ssdsddss";

请问如何用php string函数提取出"1+",谢谢。(初学者,请耐心回答,谢谢)

$str = substr($content,2);

人气教程排行