exit and echo php code example Example: exit and echo php //exit — Output a message and terminate the current script