Unclassified NewsBoard Code Reference

TrailingSlash function

Add or remove a trailing slash to pathnames

function TrailingSlash ($path, $add = true);

Parameters:

path
(string) pathname
add  –  optional, default: true
(bool) true: add a slash if it's not there
false: remove a slash if it is there

Return value:

(string) modified pathname

Implementation file: unb_lib/common.lib.php, line 837

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.