Technical Ajax_ dynamic websites, php syntax

1, dynamic website technology (backend language)

   php, java (jsp and php language almost) ,. net, Nodejs, python. . .

   The simplest is to learn php

2, php basic grammar 

  

 

  

  

  js js code in the script with a wrap, php by <? php?> After the wrap, can be placed in any position of a html tag

 3, compare js and php language

   Variable - in-memory data

   1, variable declaration

    

 

    Start with $

    $ A = 1;

   2, string concatenation

    php point is used.

    $ Num. 'Who are you' ==== '' Who are you 1 '

    

    3、

    

    Note: json format string inside double quotes must be --- this is the norm, not to follow will complain

    

    4, php in array

      

    5, iterate

      js in

      

      in php

      

 

      

    6, data types

       js in a weakly typed language ---

        

        The role of call: 1, changing the function of this point, 2, 3 calls the function, this parameter is the first point 4, the value returned is the return value of the function call to invoke a

       in php

        . . . Look php document

      7, function

        js in

          1、function

          2, function expression

          3、new Function()

        in php

          

           

    8, get post data acquisition

      js in

        

      in php http protocol

        

        

        

    Case: Query results

        

 

        

        

 

      

      

 

        

      

 

    

 

    

    

Guess you like

Origin www.cnblogs.com/yangyutian/p/10958269.html