Does PHP have a is_type () function? How to fix it

Source: Internet
Author: User
Does PHP have a is_type () function?
http://docs.php.net/manual/zh/language.types.intro.php

Use the GetType () function if you just want a readable type of expression for debugging purposes. To view a type, do not use GetType () and use the Is_type function.

Problem:
1.PHP Manual, do you have Is_type () function?

Share to:


------Solution--------------------

Is_array--detects if a variable is an array
Is_bool--Whether the detection variable is a Boolean type
Is_callable--Detect if the parameter is a legitimate callable structure
Is_double--alias of Is_float ()
Is_float--Whether the detection variable is floating point type
Is_int--detects if the variable is an integer
Is_integer--alias of Is_int ()
Is_long--alias of Is_int ()
Is_null--detects if the variable is null
Is_numeric--detects if a variable is a numeric or numeric string
Is_object--detects if a variable is an object
Is_real--alias of Is_float ()
Is_resource--detects if a variable is a resource type
Is_scalar--detects if a variable is a scalar
Is_string--detects if a variable is a string

  • 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.