Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

extract text before last space php

 $string = "hello world again";
 echo substr($string, 0, strripos($string, ' '));//hello world
 
PREVIOUS NEXT
Tagged: #extract #text #space #php
ADD COMMENT
Topic
Name
5+4 =