title: Will using PHP sleep() function work in CRON jobs
body: <p>Codeigniter PHP we're using <em>CRON</em> jobs for calling one specific job. If I used <code>sleep()</code> function inside the script, will it affect (be used) in the <code>CRON</code> jobs?</p>
  
  <p>I have run the below PHP file using cronjob daily(12pm) in server:</p>
  
  <p><strong>test.php:</strong></p>
  
  <pre><code>function cron_function()
  {
     while (true) {
      foreach ($results as $user) {
        if($user['email'] == 'test@gmail.com') {
          break;
        }
     sleep(1);
      }
     }
  }
  </code></pre>