First, the URL function
1, UrlEncode --encoded URL string
2, UrlDecode -decode encoded URL string
3. Rawurlencode -encode URLs according to RFC 1738
4, Rawurldecode --decoding encoded URL string
5, Base64_encode --encode data using MIME base64
6, Base64_decode --decoding data encoded with MIME base64
7, Parse_url -parse URL, return its components
8, Get_meta_tags --Extracts all meta tags from a file content property, returns an array
9, Http_build_query --the request string after generating url-encoded
$url = "http://www.zhuyibo.com/zhuadmin/order?id=124&type=1";
echo UrlEncode ($url); Http%3a%2f%2fwww.zhuyibo.com%2fzhuadmin%2forder%3fid%3d124%26type%3d1
echo Rawurlencode ($url); Http%3a%2f%2fwww.zhuyibo.com%2fzhuadmin%2forder%3fid%3d124%26type%3d1
echo Base64_encode ($url);//ahr0cdovl3d3dy56ahv5awjvlmnvbs96ahvhzg1pbi9vcmrlcj9pzd0xmjqmdhlwzt0x
Print_r (Parse_url ($url))//array ([scheme] + http [host] = www.zhuyibo.com [path] +/zhuadmin/order [query] = id=124&type=1)
Second, output control function
1. Ob_start -Open output control buffer
2. Ob_clean -Empty (erase) the output buffer
3. Ob_end_clean -Empty (erase) buffer and turn off output buffering
4. Ob_flush -Flushes out (sends out) the contents of the output buffer
5. Ob_end_flush -Flushes out (sends out) the output buffer content and closes the buffer
6. Ob_get_clean -Gets the contents of the current buffer and deletes the current output slow.
7, Ob_get_contents -Returns the contents of the output buffer
8, Ob_get_flush -brush Out (send) buffer content, return content as a string, and close the output buffer.
9, Ob_get_length- returns the length of the output buffer content
10, Ob_get_level -Returns the nesting level of the output buffering mechanism
11, Ob_get_status -Get the status of all output buffers
12, Ob_gzhandler -callback function used in Ob_start to compress the contents of the output buffer. Ob_start callback function to gzip output buffer
13. Ob_implicit_flush -turn on/off absolute swipe
14. Ob_list_handlers- lists all the output handlers in use.
15. Flush -Refreshes the output buffer
16, Output_add_rewrite_var -Add the value of the URL rewrite (add URL rewriter values)
17, Output_reset_rewrite_vars -Resets the value of the URL rewrite (reset URL rewriter values)
PHP Basic Knowledge "function" (7) URL and OB function