Answers for "php get last piece of string after space"

PHP
0

extract text before last space php

$string = "hello world again";
 echo substr($string, 0, strripos($string, ' '));//hello world
Posted by: Guest on September-24-2021

Code answers related to "php get last piece of string after space"

Browse Popular Code Answers by Language