title: Setting PHP timer based functions
body: <p>I have a php file <code>test.php</code>. I want to <code>echo</code> or <code>print</code> &quot;Success&quot; after 5 seconds, soon after the php file is called or loaded or opened by the browser. Incidentally, sometimes I may want to execute / initialise some functions after a specific interval of time.</p>
  <p>How can I make a time-oriented task using php, like printing a message after 5 seconds?</p>