📌  相关文章
📜  在php代码示例中获取字符串后的单词

📅  最后修改于: 2022-03-11 14:54:25.786000             🧑  作者: Mango

代码示例1
$string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla felis diam, mattis id elementum eget, ullamcorper et purus.";
$prefix = "Nulla";
$index = strpos($string, $prefix) + strlen($prefix);
$result = substr($string, $index);