Lesson 3 - PHP Flashcards
1
Q
What is used to compare values and validate data
A
IF command
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)
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 <= >=