1、运算符:php
一、算数运算符:+、-、*、/、%、++、--web
二、字符串运算符:this
<?php $str="string php100"; echo $str."web"; //输出结果string php100web echo $str.123; //输出结果string php100123 $str2="web"; echo $str.$str2; //输出结果string php100web ?>
三、赋值运算符:①=、②+=、③-=、④*=、⑤/=、⑥%=、⑦.=blog
四、位运算符:&、|、~、^、<<、>>开发
五、比较运算符:>、<、>=、<=、==、!=、<>、===、!==字符串
六、逻辑运算符:AND、OR、XOR、&&、||、!string
2、流程控制:it
一、if(){}、if(){}else{}、if(){}elseif(){}else{}io
二、php的case条件能够是字符串类型,做为iOS开发者的小编来讲,这样挺随意。class
switch(condition) { case "A": { echo "this is case A"; break; } default: { echo "this is default"; break; } }