Join Kevin Skoglund for an in-depth discussion in this video Booleans, part of PHP Essential Training.
- [Instructor] In this movies, we're going to look at booleans.…Now, a boolean is a programming type…that can either be true or false.…That's it, one of those two values.…And true is not the string, "true"…or even the number one, it's just simply the value true.…Booleans are very useful in programming…because we can use them when performing tests.…For example, in the last movie we used the in array function…to test whether an integer was inside of an array.…The result was that the test was a boolean,…true if the integer was present, false if it was not.…Let's start by creating ourselves a new workspace for this.…
I'll open up basic.html.…We'll do save as, and we're going to call this booleans,…notice how that's spelled booleans,…and I'll also call it booleans here,…and let's create our php tags.…Now, a boolean is simply the value true or the value false.…Notice that there are no quotes around that.…It's not a string, se we could have for example result1…equals true, and then down here…we'll have result2 equals false.…
- 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.