How to use the PHP in_array() Function Thumbnail

How to use the PHP in_array() Function

In this tutorial, you will learn how to use the in_array() function in PHP. Using this function, you can quickly check whether a value exists within an array. It is cleaner to use than writing a for or foreach loop to process the array. Read More...

How to Get the Current Page URL in PHP Thumbnail

How to Get the Current Page URL in PHP

This guide will teach you how to get the current page URL in PHP. There is no inbuilt function to get the current URL. Instead, we have to build it from the $_SERVER super global. This super global contains data such as the request URI. Read More...

How to Use PHP foreach Loops Thumbnail

How to Use PHP foreach Loops

In this tutorial, we will discuss how to use and write a foreach loop in PHP. They are great for iterating through arrays or objects. Highly recommend learning how to use this type of loop. Read More...

Using the implode function in PHP Thumbnail

Using the implode function in PHP

In this tutorial, you will learn how to use the implode function in PHP. This function allows you to combine all values of an array into a string, joined by the defined separator. So effectively, it converts an array to a string. Read More...

Generating an MD5 hash in PHP Thumbnail

Generating an MD5 hash in PHP

This tutorial shows you how to generate an MD5 hash for either a file or string. While useless for security, this hash still has its uses. It can be used as a quick hash to validate that two files are the same. Read More...

How to use the str_replace Function in PHP Thumbnail

How to use the str_replace Function in PHP

This tutorial will show you how to use the str_replace function in PHP. This function allows you to find and replace text within a string quickly. In addition, it can handle different matches on a string with different text replacements. Read More...

PHP require and require_once Thumbnail

PHP require and require_once

In this tutorial, I go through how and when to use require and require_once in PHP. These two statements are useful for including essential scripts and files into your PHP code. Read More...

How to use Constants in PHP Thumbnail

How to use Constants in PHP

Learn how to use and declare constants within the PHP language. This guide will show you how to use the define() function and the const keyword. This function and keyword affect the way a constant can be declared in PHP. Read More...

How to Use the PHP for Loop Thumbnail

How to Use the PHP for Loop

In this tutorial, we take you through the basics of using and writing a for loop in the PHP programming language. It is a vital code control structure that I recommend you learn. Read More...

A Guide to PHP Strings Thumbnail

A Guide to PHP Strings

In this guide, we will walk you through how you can define a string in the PHP language. A string is defined as a sequence of characters. There are multiple ways to define a string, each with its own purpose. Read More...

PHP include and include_once Thumbnail

PHP include and include_once

Learn how and when to use include and include_once in PHP. These two statements are often used in PHP to include additional scripts and files. This tutorial is highly recommended if you are new to PHP. Read More...

PHP Operators Thumbnail

PHP Operators

In this guide, we will show you the operators supported by the PHP language. Operators are a critical part of coding with PHP. They perform operations on one or more values to create a new resulting value. Read More...

How to Use the PHP while Loop Thumbnail

How to Use the PHP while Loop

In this tutorial, we will be going through how to write a while loop in PHP. A while loop is extremely useful when you want to control code in a certain way. It is a must-know if you plan on programming. Read More...