PHP pathinfo () function PHP Filesystem function definition and usage The pathinfo () function returns the file path information as an array. grammar pathinfo (path, options) Parameter Description path Required. Specify the path to be checked. process_sections Optional. Specifies the array element to return. The default is all. Possible values: PATHINFO_DIRNAME - return only dirname PATHINFO_BASENAME - return only basename PATHINFO_EXTENSION - Only the extension is returned Description pathinfo () returns an associative array containing information about the path. Include the following array elements: [dirname] [basename] [extension] Tips and Notes NOTE: The pathinfo () function returns a string if it is not required to get all the cells. Example 1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.