DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+9 =
Submit