Write a PHP script to remove trailing slash from a string.
Original String : 'The quick brown fox jumps over the lazy dog///'
<?php $my_str = 'The quick brown fox jumps over the lazy dog///'; echo rtrim($my_str, '/')."\n"; ?>
Sample Output:
The quick brown fox jumps over the lazy dog
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer