Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$string = '11114444333322225555';
$slice = '4';
$strLen = mb_strlen($string);
$remainder = $strLen - $slice;
$string2 = substr($string, -1, $remainder);
print_r($string2);