Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get last word of string php

$split = explode(" ", $string);

echo $split[count($split)-1];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #word #string #php
ADD COMMENT
Topic
Name
4+2 =