Android Programmer learns PHP Development (6)-string Array object resource-phpstorm

Source: Internet
Author: User
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)!

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