PHP Small function

Source: Internet
Author: User

1 variable function

The A.IS_XXX function is used to determine the variable type

Is_int, Is_integer, Is_long, determine whether the variable is an integer is_string--Whether the detection variable is a string is_float, Is_double, is_real, determine whether the variable is floating point type Is_bool judgment Whether the variable is a Boolean is_string whether the variable is a string Is_array whether the variable is an array type Is_resource whether the variable is a resource type is_object determine if the variable is an object Is_nul L Determine if the variable is null B. Determine whether a variable exists or is empty isset: Determines whether a variable defines empty: Determines whether the variable is null unset: the definition of the cancellation variable

2 Mathematical functions

Round function: 4 5 into the function, can define the precision Ceil: into a method to take the whole floor: The rounding method to take the whole Number_format: The number is formatted by the thousands group.

PHP Small function

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.