function stops running after while loop php code example Example: while true php while(true) { // Infinite Loop }