Skip to content

109 Sandbox

A website made for testing

Remove a trailing slash in PHP

Published ·UPD ·In Miscellaneous
<?php

rtrim($string, '/');

Documentation

php.net/rtrim