0502 Simple understanding of php

Ready to work:

Install wamp, configure the site: apache2.4.9\conf\httpd.conf

Precautions:

1. There must be a semicolon

2. Do not have meaningless blank lines, it will be output in the form of spaces.

3. Variables, keywords (if, for..), constants are case-insensitive, and function names are sensitive.

1. Output:

Echo $aaa; //Commonly used

Var_dump($aaa); //Commonly used. data type data content (data length)

Print($aaa);

Print_f($aaa)

Printf($aaa)

2. Syntax format:

Commonly used:

<?php
  echo ‘aaa’;
?>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325144843&siteId=291194637