I am trying to remove last few characters from the string
using rtrim
.
i have string "Scryed (download torrent) - TPB"
i want output string "Scryed"
e.g.
$title_t = "Scryed (download torrent) - TPB";
echo ($title_t) ;
echo "\n";
$title = ( rtrim ($title_t, "(download torrent) - TPB") );
echo ($title) ;
gives
Scryed (download torrent) - TPB
Scry
Why is that ? expected output is
Scryed (download torrent) - TPB
Scryed