Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Remove the Last Character From a String in PHP

phpCopy<?php
$mystring = "This is a PHP program.";
echo substr($mystring, 0, -1);
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Remove #Last #Character #From #String #PHP
ADD COMMENT
Topic
Name
5+7 =