Answers for "get last - from string + php"

PHP
10

get last character of string php

substr("testers", -1); // returns "s"
Posted by: Guest on March-05-2020
0

php last of string till /

$string = 'Hello World Again';
$string = explode(' ', $string);
array_pop($string);
$string = implode(' ', $string);
Posted by: Guest on November-07-2019

Code answers related to "get last - from string + php"

Browse Popular Code Answers by Language