Join Kevin Skoglund for an in-depth discussion in this video NULL and empty, part of PHP Essential Training.
[Instructor] In this video,…we're going to be talking about null.…Null is a fancy term for nothing, for not having a value.…It's not zero.…It's not an empty string.…It's the actual lack of a value,…and if we can set a value into a variable,…then we also have to have some way to talk about the fact…that variable might not have a value at all,…and null allows us to do that.…Let's take a look at it by first creating a page…where we can work with null,…and I'm going to do that by opening up basic.html…and then choosing save as.…We're going to save this as null.php.…
So, null.…Now, like true and false, the Booleans we just talked about,…null can either be written in lowercase or in all uppercase,…and you will waste a lot of time arguing with people…about the right way to do it in PHP…and whether one is better than the other…or one has better performance than the other.…The truth is that they're case insensitive…and that you can use absolute whichever one you prefer,…there is no difference.…I'm going to use the lowercase version.…
- 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.