else in php November 19, 2021 by Codingtube team An else statement allows you to define an alternative action to be taken when the condition in an if statement is false Example-1 Example-2