php get last 4 digits of string , fast 4 digits , first 5 chars

php get last 4 digits of string , fast 4 digits , first 5 chars


 php get last 4 digits of string , fast 4 digits , first 5 chars

Code Example: https://www.codegrepper.com/code-examples/php/php+get+last+4+digits+of+string

$newstring = substr($dynamicstring, -7);
$result = substr("Hello How are you", 0, 5); //first 5 chars "Hello"



HOME