PHPMailer::mb_pathinfo

Advertisement

Summery Summery

Multi-byte-safe pathinfo replacement.

Syntax Syntax

PHPMailer::mb_pathinfo( string $path, integer|string $options = null )

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

(string) (Required) A filename or path, does not need to exist as a file

$options

(integer|string) (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


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.