title: Stop executing PHP for or while loop in Command line with key press?
body: <p>Is it possible in php to exit a loop on a "key press"?</p>
  
  <p>For example continual for loop to exit on key press and to continue executing rest of code so not sigterm, just stop loop and continue?</p>