Php Overrview

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 .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值