while loop php error expects const or function code example Example: while true php while(true) { // Infinite Loop }