Answers for "php get everything after a certain record"

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 everything after a certain record"

Browse Popular Code Answers by Language