• 2022-10-26
    比较两个时间的大小,下列代码中,横线处应用( )函数。 A: strtotime()
    B: microtime ()
    C: strftime()
    D: setlocale()
  • A

    内容

    • 0

      如果希望在关闭浏览器前删除cookie文件,使用下列( )函数实现。 A: setcookie('data','PHP',time()+1); B: setcookie('data','',time()+1); C: setcookie('data','PHP',time()-1); D: setcookie('data','',time()-1);

    • 1

      用PHP打印出前一天的时间,格式是2006-5-10 22:21:21。 A: echo date('Y-m-d h:i:s', strtotime('-1 days')); B: echo date('Y-m-d H:i:s', strtotime('-1 days')); C: echo date('Y-m-d h:i:s', strtotime('+1 days')); D: echo date('Y-m-d H:i:s', strtotime('+1 days'));

    • 2

      用PHP打印出前一天的时间格式是2020-5-10 22:21:21( )。 A: echo getdate(‘Y-m-d H:i:s’, strtotime(‘-1 days’)); B: echo date(‘y-m-d H:i:s’, strtotime(‘-1 days’)); C: echo date(‘Y-m-d H:i:s’, strtotime(‘-1 days’)); D: echo date(‘Y-m-d h:i:s’, strtotime(‘1 days’));

    • 3

      —Darling, ___ to have lunch .—I’m coming, Mum. A: it is a time B: it’s the time C: it’s time D: it was a time

    • 4

      I keep practising and I’m improving _____ . A: in the time B: all the time C: at the time D: on the time