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'
Also in PHP:
- not null in laravel
- blade Keep input values after failed validation
- cache clear laravel command
- display errors
- char position in string php
- case statement in php
- 2.30 will display 2.3 in php
- captial functuon php
- The magic __toString() method will be invoked automatically when the code enters the catch()statement and the custom exception message will be printed
- date print in php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Public/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- can you use just 1 try catch in a php function
- changer le format d'une date php
- exclude php
- date format functino php
- How do you clear cache in Laravel?
- ->with()->where laravel
- double pipe in php
- count charctor in php
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0]
- ata date format in php
- List of php frameworks
- base64 decode php function
- check if key exists in array php