All the PHP tutorials โคต๏ธ
-
Global array $_SERVER in PHP
Stop guessing which $_SERVER keys are safe to use. I break down the actual values, what they mean, and which ones you can trust for your PHP request handling.
-
Finding elements of arrays in PHP
I show you how to use count() to get the number of items in a PHP array. This simple example clears up basic array size checks for your next project.
-
How to print the entire array in PHP
Use print_r() to print the entire array in PHP, showing all keys and values exactly as they are in your code.
-
How to delete array in PHP
Remove specific items or entire structures in PHP by calling the unset function. This post shows exactly how it works so you can stop guessing what breaks.
-
What is a nested array PHP
Nested arrays in PHP are just arrays inside arrays. I show you how to build, access, and chain them without any special syntax or helper functions.
-
How to change array values PHP
Changing array values in PHP is simple. I show you how to update items using both numeric and string keys with clear, working examples.
-
What are arrays in PHP
PHP arrays can be tricky. Here is how to create them with array() or by index, and why both methods produce the same result.
-
What are PHP Constants
PHP constants hold fixed values without needing a dollar sign. I show how to use define() and explain why they stay safe from accidental changes.
-
Assigning, editing, and deleting variables in PHP
I show you how to assign, edit, and delete variables in PHP using the equals operator, covering quotes for strings vs numbers and why order matters.
-
What are PHP Variables
I keep it simple: PHP variables start with a dollar sign and follow strict naming rules. Here are the three rules that decide if your variable name is valid.