wp_basename() WP 1.0
i18n friendly version of basename()
✈ 1 time = 0.000025s = very fast | 50000 times = 0.30s = very fast | PHP 7.0.8, WP 4.6
No Hooks.
Return
String.
Usage
wp_basename( $path, $suffix );
- $path(string) (required)
- A path.
- $suffix(string)
- If the filename ends in suffix this will also be cut off.
Default:''
Code of wp basename:
wp-includes/formatting.php
VER 5.0.3
Related Functions
From tag: PHP analogues (PHP functions replacement)
More from tag: path (directory folder)
More from category: Helper Functions
- __return_empty_array()
- __return_empty_string()
- __return_false()
- __return_null()
- __return_true()
- __return_zero()
- get_page_hierarchy()
- is_email()
- is_serialized()
- is_serialized_string()
- map_deep()
- maybe_serialize()
- maybe_unserialize()
- seems_utf8()