Have a review of PHP today.

Source: Internet
Author: User

Keep a record of what you are reviewing today.

$_get["] $_post $_session $_cookie commonly used

$var = ' a '; Global variable $globals["]

$ $var (variable with dynamic variable name) $a ();(dynamic Call function, these 2 functions are very powerful)

foreach ($array as $val)

$str. = '; Array: Array () array (array (), array ())

Include (' filename ')//replace the contents of the file directly with this sentence, require ()

Other grammars are basically the same as C;

Object-oriented:

$a =new A (1), $a->a (), Class A implements ib{

var $a;

Public function __construct ($a) {

}

Public function A () {

}

}

Interface ib{

Public function B ();

}

Exception handling try {}catch (Exception $e) {echo ' Message: '. $e->getmessage ();}

SVN checkout->commit Create project, update

Have a review of PHP today.

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.