Hello,
I need to remove dashes from beginning and end of a string.
I use:
$string = preg_replace("/-+/", " ", $string);
to remove multiple. When it's done I need to remove dashes from beginning and end of a string.
Can somebody help me?
Thank you.