untrailingslashit() – Removes trailing forward slashes and backslashes if they exist.
You appear to be a bot. Output may be restricted
Description
Removes trailing forward slashes and backslashes if they exist.
The primary use of this is for paths and thus should be used for paths. It is not restricted to paths and offers no specific path support.
Usage
$string = untrailingslashit( $value );
Parameters
- $value
- ( mixed ) required –
Returns
string String without the trailing slashes.
Source
File name: wordpress/wp-includes/formatting.php
Lines:
1 to 3 of 3
function untrailingslashit( $value ) { return rtrim( $value, '/\\' ); }