字符串连接符:.
<?php
header('content-type:text/html;charset=utf-8');
echo 'my name is'.' '.'DL_one';
?>
三元运算符
形式:表达式?值1:值2
表达式为true,返回值1,为false,返回值2
<?php
header('content-type:text/html;charset=utf-8');
$num1=1>2?1:2;
$num2=1<2?1:2;
echo $num1,'<br>',$num2;
?>