Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove last 3 character from string php

$str = removeLast3char($str);
function removeLast3char($string){
    return trim(substr($string, 0, -3));
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #remove #character #string #php
ADD COMMENT
Topic
Name
9+8 =