This series of tutorials teaches you the basics of PHP, one of the most popular programming languages for building dynamic web pages.
- 1How to set up PHP in Windows
- 2How to set up PHP in MacOS
- 3How to set up PHP in Ubuntu
- 4How to upgrade PHP to the latest version in Windows
- 5How to upgrade PHP in MacOS
- 6Why should you use PHP for web development?
- 7Fix PHP error: Cannot load XAMPP PHP – OCI8 extension in Unknown on line 0
- 8PHP not working in Windows? Here are the fixes
- 9PHP not working in MacOS? Here are the solutions
- 10PHP: ‘Hello, World!’ Example
- 113 Ways to Check PHP Version
- 12How to Upgrade PHP Versions on Ubuntu
- 13PHP Data Types Cheat Sheet
- 143 Ways to Make Comments in PHP: Best Practices for Readable Code
- 15How to declare variables in PHP
- 16How to define constants in PHP
- 17Where is the php.ini file located in Windows, MacOS, and Ubuntu?
- 18PHP: Best configuration for php.ini
- 19PHP: Where is the error log file located?
- 20PHP: How to Enable/Disable Error Reporting (3 Ways)
- 21PHP: How to Enable/Disable Warnings and Notices
- 22PHP: How to use .env file to store environment variables
- 23Best practices for naming variables in PHP
- 24PHP keywords and reserved words you should know
- 25Variable Scope in PHP: Local, Global, Static
- 26Variable References in PHP: Explanation with Examples
- 27PHP var_dump() Function: Explanation with Examples
- 28PHP echo vs print: What’s the Difference?
- 29PHP: How to get type of a variable at runtime
- 30Boolean data type in PHP
- 31How to use Enum in PHP
- 32Mastering if-else statements in PHP
- 33Mastering switch-case statements in PHP
- 34Mastering Try-Catch Statements in PHP
- 35Mastering ‘for’ loops in PHP
- 36Mastering ‘foreach’ loops in PHP
- 37Mastering ‘while’ Loops in PHP
- 38Mastering Ternary Operator in PHP
- 39Understanding NULL in PHP
- 40How to define and call functions in PHP
- 41How to use callback functions in PHP
- 42PHP: Define Function with Variable Number of Arguments
- 43PHP: Define function with default arguments
- 44PHP: Define function that returns multiple values (3 ways)
- 45Using Anonymous Functions in PHP
- 46Using ‘declare’ construct in PHP
- 47Using ‘exit’ and ‘die’ constructs in PHP
- 48Using ‘goto’ Construct in PHP
- 49PHP: How to include code from another file
- 50Using Type Hinting in PHP: A Complete Guide
- 51High Order Functions in PHP: A Practical Guide (6 Examples)
- 52Using printf() and sprintf() in PHP
- 53PHP: How to pass an array to a function as multiple arguments
- 54Solving PHP Error: Expecting ‘,’ or ‘;’
- 55How to Check if a Function Exists in PHP
- 56Fixing PHP Error: Unexpected T_STRING
- 573 Ways to Check if a Variable is NULL in PHP
- 58Fixing PHP Error: Unexpected end of file
- 59Truthy and Falsy Values in PHP: A Complete Guide
- 60PHP: Using ‘break’ and ‘continue’ in loops
- 61Null Coalescing Operator in PHP: Embracing Graceful Defaults
- 62Optional Type Declarations in PHP: Enhancing Code Reliability
- 63Closure in PHP: A Complete Guide
- 64Arrow Functions in PHP: A Complete Guide
- 65Comparison Operators in PHP: A Complete Guide
- 66PHP: 3 Ways to Get City/Country from IP Address
- 67Casting Operators in PHP: A Practical Guide
- 68PHP: How to use ‘instanceof’ operator
- 69PHP: require(), require_once(), include(), include_once()
- 70PHP: How to ping a server/website and get the response time
- 71How to Get Current Date and Time in PHP
- 72How to format date and time in PHP
- 73How to get the current timestamp in PHP
- 74PHP: Convert UTC time to local time and vice versa
- 75PHP: Convert UTC timestamp to local timestamp and vice versa
- 76PHP: Convert timestamp to date time and vice versa
- 77PHP: Convert date time to time ago and vice versa
- 78PHP: Get an array of dates between two dates
- 79PHP: How to subtract days from a date
- 80PHP: How to compare two dates
- 81PHP: How to Check if a Date is in a Valid Format
- 82PHP: How to convert a string to date time
- 83PHP: Check if two dates are equal
- 84PHP: Check if two date ranges overlap
- 85Working with Daylight Saving Time in PHP
- 86PHP: How to sort an array of dates in DESC/ASC order
- 87PHP: Calculate people’s age from date of birth
- 88PHP: How to get only date part from date time
- 89PHP: Calculate a future date from a given date
- 903 Ways to validate credit cards in PHP (with examples)
- 91How to Fix PHP Warning: Headers Already Sent – Cannot Modify Header Information
- 92How to set up PHP Composer in Windows
- 93How to Fix PHP Notice: Undefined Variable
- 94Using Variable Variables in PHP: A Deep Dive
- 95How to Set Up PHP Composer in MacOS
- 96PHP: How to programmatically post to Twitter
- 97How to set up and configure PHP Composer in Ubuntu
- 98Fixing PHP Fatal error: Allowed memory size exhausted
- 99Composer Error: Your PHP version does not satisfy that of your Composer dependencies
- 100PHP Composer: How to install a specific version of a package
- 101Fixing Composer error: PHP extension ‘fileinfo’ is missing
- 102PHP Composer error: Your requirements could not be resolved to an installable set of packages
- 103[Solved] PHP Composer Warning: openssl extension is missing
- 104[Solved] Composer error: PHP extension zip is missing
- 105PHP: How to Extract all Headings from HTML Source (2 Ways)
- 106PHP Composer: How to Upgrade Packages to New Versions
- 107PHP Composer error: Could not open input file ‘composer.phar’
- 108How to Choose PHP Version Used by Composer (with Examples)
- 109PHP Composer Error: Cannot Allocate Memory – Solutions and Best Practices
- 110Fixing PHP Composer error: ‘mbstring’ is missing
- 111Solving PHP Composer error: requires ext_curl
- 112Composer error: PHP extension ext-intl * is missing
- 113How to Clear PHP Composer Cache
- 114Fixing composer.json error – failed to open stream: Permission denied
- 115Pandas DataFrame.value_counts() method: Explained with examples
- 116Constructor Property Promotion in PHP: Tutorial & Examples
- 117PHP: Using DocBlock comments to annotate variables
- 118Union Types in PHP: A practical guide (5 examples)
- 119Understanding mixed types in PHP (5 examples)
- 120Static Return Type in PHP: Explained with examples
- 121Nullable (Optional) Types in PHP: A practical guide (5 examples)
- 122Type Declarations for Class Properties in PHP (5 examples)
- 123Explore Attributes (Annotations) in Modern PHP (5 examples)
- 124An introduction to WeakMap in PHP (6 examples)
- 125PHP: How to implement type checking in a function (PHP 8+)
- 126Using ‘never’ return type in PHP (PHP 8.1+)