wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



untrailingslashit › WordPress Function

Da2.2.0
Deprecaton/a
untrailingslashit ( $value )
Parametri:
  • (string) $text Value from which trailing slashes will be removed.
    Richiesto:
Ritorna:
  • (string) String without the trailing slashes.
Definito a:
Codex:

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.


Sorgenti

function untrailingslashit( $value ) {
	return rtrim( $value, '/\\' );
}