What potential issues can arise when using a while loop in PHP that may cause browsers to crash?

Using a while loop in PHP without a proper exit condition can lead to an infinite loop, causing the browser to crash. To prevent this, always ensure that the while loop has a clear exit condition based on a variable that can be modified within the loop.

$count = 0;
while ($count < 10) {
    // loop code here
    $count++;
}