Deep Dive into PHP var_dump () Functions _php Tutorial

Source: Internet
Author: User
PHP var_dumpfunction is to determine the type and length of a variable, and to output the value of the variable, if the variable has a value to lose is the values of the variable and return data type.
Let's take a look at Var_dump syntax:
Copy CodeThe code is as follows:
Var_dump (Var,var,bar);

Let's take a look at one of my examples just now.
Copy CodeThe code is as follows:
$ta = 1;
$TB = ' t ';
Echo Var_dump ($ta, $TB);
?>

Output to
Copy CodeThe code is as follows:
Int (1) string (1) "T"

The first is a number, which is int (1)
Simple, but note that the variables inside the var_dump must be present, and if the variable exists but the value is empty, it will return false;

What does the Php:var_dump () function do?
such as Var_dump ($get); What do you mean?
==========================================
This function displays structure information about one or more expressions, including the type and value of the expression.

http://www.bkjia.com/PHPjc/327318.html www.bkjia.com true http://www.bkjia.com/PHPjc/327318.html techarticle php var_dump function is to determine the type and length of a variable, and output the value of the variable, if the variable has a value to lose is the value of the variable and return data type. Take a look at Var_dump syntax: Copy ...

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