I have an string from title, and i want to remove specific character/string from this.
Title is show with bloginfo('sitename').
I try to made something like that:
<?php
$title = preg_replace('/'. preg_quote('SRL', '/') . '$/', '', bloginfo('sitename'));
print $title;
?>
...but don't work.
The title input is: SOMETHING SRL, and i want to show just "SOMETHING".
Thanks for help!
Instead of
preg_replace()usestr_replace()like below:-so the code will be:-
Output:- https://3v4l.org/NTrFJ