1 2 3 4 5
<?php $text = 'blabla.com?weori&'; $trimmed = rtrim($text, " &"); echo $trimmed;
1
blabla.com?weori