From the course: PHP for WordPress

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Helpful PHP functions

Helpful PHP functions

- [Instructor] WordPress is basically a framework built on top of PHP, which means that along with any functions WordPress has built in, we have access to PHP's vast library of built-in functions as well. Now, to get a good handle on all of this, I'd strongly recommend the learning PHP course in the LinkedIn Learning Library. It will give you a much more comprehensive look at how PHP works. Here, we're going to cover a few helpful functions that will be handy throughout your WordPress development journey. As a reminder, this is not comprehensive. First, if you are looking for documentation, php.net is the place to go. You'll find full documentation for everything PHP has to offer. Okay, now onto the functions. WordPress has lots of Boolean functions to check variables, but there are two PHP functions you'll get a ton of use out of, is set and empty. Is set will check to see if a variable is defined and not null. It's stricter, which means it has a narrower set of rules than empty…

Contents