PHP remove last dash 140 viewsApril 12, 2023PHP rtrim WP Functions 0 Jagdish Sarma646 April 12, 2023 0 Comments $str = "https://codex.wordpress.org/"; echo $str . "<br>"; echo rtrim($str,"/"); Jagdish Sarma Asked question April 12, 2023 Add a Comment 0 Answers ActiveVotedNewestOldest Write your answer. Login