what are the different types of statements which


What are the different types of statements which are present in PHP?

There are four types of PHP statements which are present. They are as follows:

• Simple statement- these are echo statements and end with a semicolon (;). PHP ignores white spaces between simple statements. Till it finds a semicolon it reads the statement.

• Complex/Conditional statements: these are statements that deal with certain conditions which have to be executed to meet certain specific requirements. These are if and else block or switch statements. PHP reads complete statement and doesn't stop at the first semicolon it encounters. It looks for starting and ending braces to end execution.

• Looping statements: statements which are repeated in a block. Feature which enables you to execute the statements repeatedly is known as loop. For illustration: while loop, for loop, do...while loop.

 

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: what are the different types of statements which
Reference No:- TGS0355095

Expected delivery within 24 Hours