Drill down into PHP using the Var_dump method _php tips

Source: Internet
Author: User
Tags mixed

First look at the example:

Copy Code code as follows:

$a = "Alsdflasdf;a";
$b = Var_dump ($a);
echo "<br>";
Var_dump ($c);
$d =var_dump ($c);
echo "<br>";
echo $a;
echo "<br>";
Echo $b;
echo "<br>";
String (a) "Alsdflasdf;a"

What does that mean? the Var_dump () method is to determine the type and length of a variable, and to output the value of the variable, if the variable has a value that loses the variable and returns the data type. This function displays information about the structure of one or more expressions, including the type and value of the expression. The array recursively expands the value and displays its structure by indenting it.
Its format: var_dump (mixed expression [, mixed expression [, ...]])
Look at the Var_dump syntax:
Var_dump (Var,var,bar);
Note that the variables inside the var_dump must be present, False if the variable exists but the value is empty, and NULL is returned if there is no variable. He has the function of outputting himself. You do not have to add other output functions.

Related Article

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.