Answers for "php get words from string regex"

PHP
1

get words after string in in php

$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);
Posted by: Guest on October-20-2020

Code answers related to "php get words from string regex"

Browse Popular Code Answers by Language