函数计算报错

    ini_set('date.timezone','Asia/Shanghai');
    $ta=''.time().'';
    
    $a='';
    if(time()>=strtotime('3:00') && time()<=strtotime('7:00')){
      $a= "区间内不执行"
    }else{
      $a= '要执行';
    }
    
    $a="11";    

{
"errorMessage": "function handler not found",
"errorType": "Exception",
"stackTrace": {

  "file": "/var/fc/runtime/php7.2/src/invoke.php",
  "line": 146,
  "traceString": ""

}
}

阅读 2.3k
2 个回答

除了$a= "区间内不执行"差个分号外,测试在7.2下没报错.

推荐问题