title: Holding php function for 4 second and then refresh the page
body: <p>I want to hold an echo function for 4 seconds and after that refresh the php page but instead sleep() function holds all of echo functions and then refresh the page.
   this is my code how can I fix this ? </p>
  
  <pre><code>if($sql_new!='')
  {
    $_SESSION["count"]="";
  
    echo "&lt;div class='cleaner h30'&gt;&lt;/div&gt;";
    echo "&lt;b'&gt;Inbox informations Submitted successfully!&lt;/b&gt;";
    sleep(4);
    echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=inbox.php\"&gt;";    
  }
  </code></pre>