PHP
Java
$string="Framework"; $result=substr($string, 0, -4); //result 'Frame'
Java
String string="Framework"; String result=string.substring(0,string.length-4); //result 'Frame'
Comments
Post a Comment