Summery Summery
Multi-byte-safe pathinfo replacement.
Syntax Syntax
Description Description
Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe. Works similarly to the one in PHP >= 5.2.0
Parameters Parameters
- $path
-
(Required) A filename or path, does not need to exist as a file
- $options
-
(Optional) Either a PATHINFO_* constant, or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2
Default value: null
Return Return
(string|array)
Source Source
File: wp-includes/class-phpmailer.php