Answers for "Php select a part of string from"

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

Code answers related to "Php select a part of string from"

Browse Popular Code Answers by Language