Join Kevin Skoglund for an in-depth discussion in this video Logical operators, part of PHP Essential Training.
- [Instructor] Last week we learned about…basic logical expressions using if, else and else if.…Now I want us to talk about the expression part of that.…The part that evaluates if it's true or false.…And I want us to enhance our ability to work with that…to generate some more complex expressions.…And to do that, we're going to have to learn about…comparison and logical operators.…In the previous example, we said if A is greater than B,…or if A is less than B,…less than and greater than are comparison operators.…But there are a number of other ones…that we can use as well.…One of the most important ones is equal.…
Are two things equal compare them.…Is A equal to B?…It's made up of two equal signs.…When we're testing if something is equal,…we do it by using two equal signs.…So when we have one equal sign,…we're doing an assignment.…We're assigning a value to something.…When we have two of them, we're comparing the two.…It's important to keep the two straight.…One is for assignment, two is for comparison.…We also have another version, which is three together,…
- What is PHP?
- Embedding PHP code on a page
- Inserting code comments
- Variables, strings, arrays, and Booleans
- If, else, and elseif statements
- While and for loops
- User-defined functions
- Function arguments and return values
- Debugging and troubleshooting
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
1. PHP Overview
2. First Steps
3. Explore Data Types
4. Control Structures: Logical Expressions
5. Control Structures: Loops
6. User-Defined Functions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.