Answers for "php get last right string"

PHP
3

take last four digits php

$newstring = substr($dynamicstring, -7);
Posted by: Guest on May-04-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

Browse Popular Code Answers by Language