Home >Backend Development >PHP Tutorial >这句代码啥意思

这句代码啥意思

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:06:35917browse

$timeline && $timeline -= date('Z')


解释一下2


回复讨论(解决方案)

等价于
if($timeline){
   $timeline -= date('Z');
}

等价于
if($timeline){
   $timeline -= date('Z');
}

这么简洁的写法!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn