Subject: PHP

If-Else Statement

Create a variable $num = 10

Use an if-else statement to check if $num is greater than 5. 

If true, print "Greater than 5", otherwise print "Less than or equal to 5".

Select file or drag and drop

PNG, JPG, SVG

Preview