You appear to be a bot. Output may be restricted
Description
Remove the leading directory path from the filename
Usage
strip_directory_path( $directory_path, $filename );
Parameters
- $directory_path
- ( mixed ) required –
- $filename
- ( mixed ) required –
Returns
voidSource
File name: oik-batch/oik-list-wordpress-files.phpLines:
1 to 6 of 6
function strip_directory_path( $directory_path, $filename ) { $directory_path = str_replace( "\\", "/", $directory_path ); $filename = str_replace( "\\", "/", $filename ); $filename = str_replace( $directory_path, null, $filename ); return( $filename ); }View on GitHub