What are the potential consequences of missing semicolons in PHP scripts?

Missing semicolons in PHP scripts can lead to syntax errors and cause the script to not execute properly. To fix this issue, make sure to add semicolons at the end of each statement to properly terminate them.

// Incorrect code with missing semicolons
$variable1 = "Hello"
$variable2 = "World"

// Corrected code with semicolons added
$variable1 = "Hello";
$variable2 = "World";