time_sleep_until() function in PHP


The time_sleep_until() function delays execution of the current script until the specified time.

Syntax

time_sleep_until(time)

Parameters

  • time − The time until execution will delay.

Return

The time_sleep_until() function returns true on success.

Example

<?php
   time_sleep_until(time()+15);
?>

The execution of the above script is now delayed for 15 seconds.

Updated on: 30-Jul-2019

80 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements