PHPMailer::mb_pathinfo
Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe.
Works similarly to the one in PHP >= 5.2.0
Signature
public function mb_pathinfo(string
$path,
[integer|string
$options = null] )
Parameters
-
$path
- A filename or path, does not need to exist as a file
-
$options
- Either a PATHINFO_* constant, or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2
Returns
- string|array