Answers for "remove character trim php"

PHP
3

php remove after character

$s = 'Posted On April 6th By Some Dude';
echo strstr($s, 'By', true); // Posted On April 6th
Posted by: Guest on October-06-2020
0

trim specific character from strin using php

$widget_id = trim($widget_text,'[]')
Posted by: Guest on January-25-2021

Code answers related to "remove character trim php"

Browse Popular Code Answers by Language