The role of the PHP function array_flip () in deleting repeated array elements. We all know that the PHP function array_flip () format: arrayarray_flip (arraytrans) array_flip -- exchange keys and values in the array arrayarray_flip (arraytrans)
Copy codeThe Code is as follows: function getsiteurl ()
{
Global $ _ SCONFIG;
If (empty ($ _ SCONFIG ['siteallurl']){$ Uri = $ _ SERVER ['request _ URI ']? $ _ SERVER ['request _ URI '] :( $ _ SERVER ['php _ SELF']? $ _ SERVER ['php _ SELF ']: $ _
We all know that,PHP function array_flip () format:
Array array_flip (array trans)// Array_flip -- exchange keys and values in the array
Array array_flip (array trans) // array_flip -- exchange keys and
This article mainly introduces the function of php to obtain the complete URL address of the current page. if you are interested, you can refer to the function that we often want to obtain the URL of the current page when compiling a program using
$ _ SERVER [REQUEST_URI] is only available on the web SERVER supporting PATH_INFO. For php, it is available under apache, in php5, another $ _ SERVER is available only in php4.1.0 and later versions. $ _ SERVER [REQUEST_URI] is a type of predefined
: This article mainly introduces the init. PHP file in ecshop. if you are interested in the PHP Tutorial, please refer to it.
Detailed description of the init. php file in ecshop
Under the Directory des/init. php
For work reasons, secondary
This article mainly introduces the function of php to obtain the complete URL address of the current page. if you are interested, you can refer to the function that we often want to obtain the URL of the current page when compiling a program using
Php obtains the complete URL of the current page, and php obtains the current url. Php gets the complete URL of the current page. When php gets the current url and uses PHP to write programs, we often want to get the URL of the current page. The
"PHP_SELF"
The file name of the script being executed, which is related to document root. For example, using $ _ SERVER ['php _ SELF '] in a script with a URL address of http://www.jb51.net/test.php/foo.bar will get the result of/test. PHP/foo. bar.
The difference between $ _ SERVER [PHP_SELF] and $ _ SERVER [SCRIPT_NAME] in php. "PHP_SELF" indicates the file name of the script being executed, which is related to documentroot. For example, use $ _ SERVER [P "PHP_SELF" in the script with the URL
If the method of the class is static, the properties that he accesses must also be static., when the internal method of the class accesses properties that are not declared const and static, use $this->value = ' class_a ';Class Clss_a {private static
The name of the function
Interpretation
Introduced
Htmlspecialchars
Converts to HTML format with, single double quotes, greater than and less than
& Turn "Turn into "' Turn into & #039;> Turn >
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.