references:joomla.framework:filesystem:jpath-cleanclean
This method strips additional / or \ in a path name. It can also add a trailing slash if desired. It will also change the slashes to the system appropriate folder separator (eg. \ on Microsoft Windows systems, but / on Unix systems). Syntaxstring clean ( $p_path, $p_addtrailingslash )
ExamplesExample jimport( 'joomla.filesystem.path' ); echo "Cleaned path: " . JPath::clean( '//..//..//..\\test.html' ); might produce: Result Cleaned path: \..\..\..\test.html\ Discussion |


