Introduction to PHP knowledge

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43606158/article/details/97576970

PHP:

Server-side scripting language

Save the file with .php extension

mark:

<?php
	/* 你的PHP代码 */
?>

Output:
echo "string";

Variables:
PHP variables are all symbols beginning with $

如:$username、 $password
$username = “abc”;

type of data:

Select structure

Loop structure

function

Array:
an array of numbers - - array with key ID
associative array - - associated with each key in a ID array value

JSON Codec:
json_encode (phpValue) - - The value encoded as JSON text PHP

json_decode (jsonText) - - The value JSON text decoder for php

Request information acquisition front-end:
$ _GET
$ _POST

Guess you like

Origin blog.csdn.net/weixin_43606158/article/details/97576970