In-depth explanation of php var_dump () Functions

Source: Internet
Author: User

Php var_dumpA function is used to determine the type and length of a variable and output the value of the variable. If the variable has a value, it is the value of the variable and returns the data type.
Let's look at the var_dump Syntax:
Copy codeThe Code is as follows:
Var_dump (var, var, bar );

Let's take a look at one of my instances.
Copy codeThe Code is as follows:
<? Php
$ Ta = 1;
$ Tb = 'T ';
Echo var_dump ($ ta, $ tb );

The output is
Copy codeThe Code is as follows:
Int (1) string (1) "t"

The first digit is int (1)
Simple, but note that the variable in var_dump must exist. If the variable exists but the value is null, false is returned;

PHP: What is the var_dump () function used?
For example, var_dump ($ get?
========================================================== =
This function displays the structure information about one or more expressions, including the expression type and value.

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