PHP Learning Note One

Source: Internet
Author: User

PHP/*three ways to annotate 2014/7/24 ctrl+j copy the current line*/   #  //  Echo"Hello World";//output A string  Echo"<br/>";//2. Define variables to start with $$a= 890;//defines a variable $ A, where the data type is determined by the context of the runtime//php is case-sensitive$b;//so the system doesn't allocate space for $b .Var_dump($b);//Output <null>Echo $a;Echo"<br/>";Var_dump($a);//variable information can be displayed  Echo"<br/>";$a= 1.1;//the value below will overwrite the previous value.$a= "Hello World";//It covers not only the value but also the type.Var_dump($a); Echo"<br/>"; /*Shaping in PHP can start with decimal, octal 0, Hex 0X*/$a 1= 0123;//octalEcho' a1= '.$a 1;//. Concatenation of the represented stringEcho"<br/>";/*PHP does not support unsigned integers, that is, the integers in PHP are signed (binary)*/EchoPhp_int_size//can display the local machine, an integer expressed in several bytesEchoPhp_int_max//can display the maximum shape value//negative and positive number as large, if more than the shaping range will be automatically converted to other types of values?>

PHP Learning Note One

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.