Study notes PHP (3)

Source: Internet
Author: User
: This article mainly introduces the study notes PHP (3). If you are interested in the PHP Tutorial, refer to it. 1. in php, functions are case-insensitive, but variables are case-sensitive.

2. the function can define optional parameters. However, if multiple optional parameters exist, the default values are from right to left coherent and cannot be skipped. when using this function, the parameters are from left to right.

3. put frequently used functions in a file, and then use required () to import them.

4. determine the data type as follows:

Isset (): // whether the variable has been declared

Empty (): // whether the variable is null

Defined (): // whether the constant has defined define ()

Array_key_exists (mixed key, array search): // check whether the given key name or index exists in the array

Is_numeric (mixed var): // check whether the variable is a numeric or numeric string.

Is_bool (): // checks whether the variable is Boolean.

Is_float (): // check whether the variables are float and is_double, is_real ().

Is_int (): // check whether the variable is the same as the integer is_integer ().

Is_string (): // checks whether the variable is a string.

Is_object (): // checks whether the variable is an object.

Is_array (): // checks whether the variable is an array.

Is_null (): // checks whether the variable is NULL or not.

The above introduces the study notes PHP (3), including the content, hope to be helpful to friends interested in PHP tutorials.

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.