The Var_dump () method really works.
Simply put, the Var_dump () method returns the data type and value of the variable.
To complicate points, the Var_dump () method is to determine the type and length of a variable, and to output the value of a variable if the variable has a value that is a variable and returns the data type. This function displays structure information about one or more expressions, including the type and value of the expression. The array recursively expands the value and displays its structure by indentation.
<?php/** * Variable type * Strings String * Incidentally introduces the escape character */$int = 10; Printed Result: 2 $str = "a"; Printed Result: a $str 3 = "This is a ' demo '"; Print Result: This is a ' demo ' $str 4 = "The is a \" demo\ "; Printed result: This is a "demo" $str 5 = "The Is a $int"; Printed result: This is a $str 6 = ' This is a $int '; Printed result: This is a $int//$str 7 = "The Is a $intttttt"; Print Result: Error, because there is no this variable $str 8 = "This is a {$int}ttttt,\\,\n,\r,\t"; Printed result: This is a 10ttttt,\,,, $str 9 = ' This is a {$int}ttttt,\\,\n,\r,\t '; Printed result: This is a {$int}ttttt,\,\n,\r,\t $str = <<
The above is the Android programmer to learn PHP development (6)-string Array object resource-phpstorm content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!