Php is more simple script language for developing server.
The base refer:
http://www.runoob.com/php/php-datatypes.html
s Maybe you need to learn base data type , class , simple programmer(the programmer with like to javaScript) , but as server develop language , more important is learn that the build server , just like sql , secrity , redis ..
Below list some base programmer with compare to js:
.1 const.
//true is tag php detect lower case and capital default value is true.
js const a = 1; = php -> define('a',1,true);
.2 php base data type:
php have seven base data type:
string,integer,float,boolean,array,object,null
.3 php String
you can use “.” stitching many String .
.4 php super global variable that can use anywhere.
$GLOBALS
$_SERVER
$_REQUEST
$_POST
$_GET
$_FILES
$_ENV
$_COOKIE
$_SESSION
.5 PHP ::
In php use :: call static variable or static method.
.6 Php OOP
php oop as same as java , class , abstract class , extend …
.7 $request
requestcancollectthecontentof
_GET or
POSTor
_COOKIE
.8 php ajax
php ajax use xhrHttpRequest , you can use jq ajax replace it .
* .4
this−>
name *
maybe because php use “.” add String , so when you wanna use some attribute from Object you need by “->”.
In summary:
Php is more simple than java web , and logic as same as javaWeb servelet , if you have developed webserver , you php will be easy for you . Good luck and wish you will enjoy.
The programmer is use all kind of api that operate data , so any language all common .
本文介绍了PHP作为服务器端脚本语言的基础知识点,包括基本数据类型、字符串操作、超全局变量等,并对比了JavaScript的相关概念。此外,还探讨了PHP在构建服务器应用方面的重点,如安全性、SQL和Redis等。

被折叠的 条评论
为什么被折叠?



