Answers for "eliminar ultimo caracter string php"

PHP
0

eliminar ultimo caracter string php

$mystring = 'number 1, number 2, number 3,';
$myString = substr($myString, 0, -1);
echo $myString;  // 'number 1, number 2, number 3'
Posted by: Guest on October-15-2020

Code answers related to "eliminar ultimo caracter string php"

Browse Popular Code Answers by Language