PHP Math Functions: Understanding the Basics
Our focus today is PHP math. Or “PHP maths,” if you prefer British English. We’re not going to teach you the basics of mathematics itself, but just explore some of the common ways we use math in our PHP code and some of the less-clear things that end up super-valuable for web development using the PHP programming language.
Three Tips for Writing Airtight PHP Conditions
In PHP, conditions are the core of conditional statements such as if-statements, and of certain other control structures like while() loops.
How to Use FTP to Deactivate a Plugin That’s Breaking Your WordPress Site
In this text and video Quick Guide, we’ll explain how to deactivate a WordPress plugin via FTP.
Understanding PHP Operators of Logic, or || and && and ! a lot more
There are a lot of different PHP operators. Some are PHP comparison operators, and work like math you’re used to. We’ll save those for another time, because our sole focus this time will be PHP logical operators. That is the logical “and” and “or” of boolean logic.
A Thorough Introduction to PHP Arrays
This article is an in-depth introduction to PHP arrays. We’ll cover what PHP arrays are, how to create and work with them, and a few less-known topics that even experienced PHP developers may find informative.
Learning PHP: Concatenate Strings and Variables Efficiently
A slightly weird term you’ll hear people use around PHP: “concatenate.” I still remember the first time I heard that word, having no earthly idea what it meant. It turns out it was a common and useful task in PHP: join two strings together so that we get a single string or something that we can echo to the screen.
Learning PHP for WordPress Development: while() Loops
Welcome to this discussion of PHP loops: what loops are, whey they’re important, and how to use PHP while() loops. This article continues our series explaining the basics of PHP for WordPress development.
Learning PHP for WordPress Development: Control Flow Basics
Welcome to this introduction to PHP control flow! This article continues our series explaining the basics of PHP for WordPress development.
Understanding PHP Globals and Variable Scope in WordPress
One of the most maligned features of WordPress is the use of “PHP global variables.” Whether you love them or hate them, thoughm global variables probably aren’t leaving WordPress soon.
Learning PHP for WordPress Development: How to Include PHP in HTML
Welcome to this article on how to use PHP in HTML! Here, we try to get specific about exactly how PHP and HTML interact, at the level of a specific .php file. In other words, how do you actually include PHP in HTML, and what rules can and can’t you follow in weaving PHP and HTML together?