Getting Started with PHP

Source: Internet
Author: User

<?php  has a similar local scripting language to JavaScript: the runtime is called a scripting language by the language that executes the environment.   Weakly typed languages: A language execution environment that does not require mandatory declaration of data types: performed by the server. And JS is interpreted by the browser to execute. Server: A machine   precompiled processing language that can be accessed or retrieved by several users at the same time: After development is completed, it is compiled into a program that can be recognized by the computer, which is called a precompiled processing language.   $ABC = 100; PHP declaration variables: Starting with $, immediately following the legal identifier of the valid identity symbol: alphanumeric underline, the same number cannot begin  $_=1000;echo $_; function TESTFN () {    echo 3+1+ 2;} TESTFN ();  string PHP in double quotation marks can use variables as placeholders, such as $str1= "ABC Tkilo"; Echo $str 1;php all identifiers in single quotes are used as normal strings, such as $str2= ' ABC$ABC '; echo $str 2; The connection symbol for the string is "." Say: Echo $str 1. " Qerwqwerqwer ";  class animal{    Object Access property variable to remove the $ symbol     public to indicate public     Protect represents a protected, self-accessible     private representation of     public $eating = "Eat";    protected $walking = "Walk";    private $drinking = "Drink";     public Function res () {         $images = "";        for ($i; $i <7; $i + +) {             $images = $images. "  

Getting Started with PHP

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.