Lesson 3 - PHP Flashcards

1
Q

What is used to compare values and validate data

A

IF command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

IF command syntax

A

<?php
If ( condition) {
Code to execute if condition is met;
Code to execute if condition is met;
}
?>

(condition is the comparison)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

basic conditions for IF statements can check….

A
  • Equality ==
  • Inequality !=
  • Greater than and less than for numbers > <
  • Greater than or equal and less than or equal for numbers <= >=
How well did you know this?
1
Not at all
2
3
4
5
Perfectly