Delay execution of the current script for 3,5 seconds in PHP

Description

The following code shows how to delay execution of the current script for 3,5 seconds.

Example


  /*from   ww  w .j a va 2 s . co m*/
<?php
      if (time_nanosleep(3,500000000) === true){
           echo "Slept for three and a half a second";
      }
?>




















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone