Answers for "remove left right char in php"

PHP
2

php substr remove last 4 characters

echo substr($string, 0, -3);
Posted by: Guest on October-24-2020
0

remove exact characters from string using php

$widget_id = substr($widget_text, 1, strlen($widget_text)-2);
Posted by: Guest on October-22-2021

Browse Popular Code Answers by Language