Write a PHP script to delay the program execution for the given number of seconds

  • برمجة بي اتش بي

Write a PHP script to delay the program execution for the given number of seconds.

الأجوبة

<?php
// current time
  echo date('h:i:s') . "\n";
  // sleep for 5 seconds
  sleep(5);
  // wake up
  echo date('h:i:s')."\n";
?>

Sample Output:

02:47:42                                                            
02:47:47
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...