PHP 几个路径函数

如题所述

//   
dirname()  
// Returns directory name component of path  
basename()  
// Returns filename component of path  
pathinfo()  
// Returns information about a file path;  
// pathinfo() returns an associative array containing information about path .  
parse_url()  
// Parse a URL and return its components;  
// This function parses a URL and returns an associative array   
// containing any of the various components of the URL that are present.  
realpath()  
// Returns canonicalized absolute pathname;  
// realpath() expands all symbolic links and resolves references to '/./', '/../' and  
// extra '/' characters in the input path . and return the canonicalized absolute pathname.   
http_build_query()  
// Generate URL-encoded query string;  
// Generates a URL-encoded query string   
// from the associative (or indexed) array provided.   
http_build_url()  
// Build an URL
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网