PHP Associative Arrays Thumbnail

PHP Associative Arrays

This tutorial will cover PHP associative arrays and how you can create, edit, and access them. This array type will be helpful in many use cases, especially when you need a clear identifier for a value. Read More...

How to use the date() Function in PHP Thumbnail

How to use the date() Function in PHP

This tutorial will teach you how to use the date() function within your PHP scripts. This function returns the date and time using the format that you specify. This time can be either the current time or the one you specify. Read More...

How to Install PHP on macOS Thumbnail

How to Install PHP on macOS

This tutorial will show you how to install the PHP programming language on MacOS. You will need the Homebrew package manager installed for this tutorial to work correctly. Luckily, it is relatively straightforward. Read More...

PHP Data Types Thumbnail

PHP Data Types

This guide will touch on the different data types you can use in the PHP programming language. For example, integers, floats, strings, Booleans, arrays, objects, resources, and null. Knowing the different data types will come in handy. Read More...

How to Check an Array Is Empty in PHP Thumbnail

How to Check an Array Is Empty in PHP

In this tutorial, we will take you through some of the ways you can check if an array is empty in PHP. We will touch on using the not operator, the empty and count function. These will come in handy if you use many arrays in your code. Read More...

Using the crypt() Function in PHP Thumbnail

Using the crypt() Function in PHP

In this tutorial, you will learn how to use the crypt() function in PHP. This function allows you to generate a hash of the provided string. Using crypt you can generate a variety of hashes including blowifsh and SHA-256. Read More...

How to use PHP $_GET Global Variable Thumbnail

How to use PHP $_GET Global Variable

In this guide, we will take you through the basics of using the PHP $_GET global variable for handling incoming GET data. We will also take you through how to define name-value pairs (query string) that are sent within the URL. Read More...

How to Install PHP on Ubuntu Thumbnail

How to Install PHP on Ubuntu

This tutorial will teach you how to install PHP on the Ubuntu operating system. This includes guides on setting it up for the Apache and Nginx webservers. PHP is a programming language that helps drive dynamic websites. Read More...

How to use PHP $_POST Global Variable Thumbnail

How to use PHP $_POST Global Variable

This guide will take you through the basics of using the PHP $_POST global variable for handling incoming POST data. You will likely need to use this variable if you plan on using HTML forms or any sort of form data submission via a POST request. Read More...

Variables in PHP Thumbnail

Variables in PHP

This tutorial will take you through the basics of using variables in PHP. We will touch on using variable scopes, data types, naming conventions, and more. It is the perfect tutorial if you want to start learning how to code in PHP. Read More...

Using the empty() Function in PHP Thumbnail

Using the empty() Function in PHP

In this tutorial, you will learn how to use the empty() function in PHP. This function checks whether a variable exists and has a valid value. This is useful for ensuring you have a valid value. It is especially useful when dealing with arrays. Read More...

How to use the PHP strlen() Function Thumbnail

How to use the PHP strlen() Function

This tutorial takes you through the basics of using the strlen function in a PHP script. The strlen function allows you to check the length of a given string. However, there are a few things you will need to be aware of. Read More...

How to Redirect in PHP Thumbnail

How to Redirect in PHP

This tutorial takes you through the process of using PHP to redirect a user whenever they hit a specific URL. There are many reasons why you may want to redirect a user, such as changing domains or moving from HTTP to HTTPS. Read More...

How to Use the PHP header Function Thumbnail

How to Use the PHP header Function

This tutorial will take you through the basics of using the header function in PHP. You can use this function to set or alter HTTP headers within a PHP script. However, you will need to be aware of a few things before using the function. Read More...

Using the isset() Function in PHP Thumbnail

Using the isset() Function in PHP

Learn how to use the isset() function in PHP. This function allows you to check if a variable has been declared or has a non-null value. It is a powerful function that allows you to ensure required data exists, especially when dealing with arrays. Read More...

Using the Ternary Operator in PHP Thumbnail

Using the Ternary Operator in PHP

This tutorial teaches you how to use the ternary operator in PHP. This operator sets a value based on whether a condition is true or false. It allows you to write cleaner and more concise code by avoiding bloated if...else statements. Read More...