PHP Common syntax functions ____ functions

Source: Internet
Author: User

Empty and Isset

Empty () to determine whether a variable is "null", Isset () to determine whether a variable has been set.

The empty also detects whether the variable is empty and zero. When a variable value is 0,empty (), the variable equals null, which is equivalent to no setting.


Parse_url

Official http://www.php.net/manual/zh/function.parse-url.php

parse_url-resolves the URL and returns its components


The explode () function splits the string into arrays.

Official http://www.w3school.com.cn/php/func_string_explode.asp


Unset-frees the given variable

http://www.php.net/manual/zh/function.unset.php


$_server

Official http://www.php.net/manual/zh/reserved.variables.server.php

$_server is an array that contains information such as header information (header), path (path), and script location (scripts locations), and so on. The items in this array are created by the WEB server. There is no guarantee that every server will provide all the items;


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.