1 2 3 4 5 6
<?php $current = "blah,blah,blah^"; $current = rtrim($current, "^"); var_dump($current);
1
string(14) "blah,blah,blah"