Using the basename() Function in PHP Thumbnail

Using the basename() Function in PHP

In this tutorial, you will learn how to use the basename() function in PHP. This function allows you to get the trailing component of a given path. A trailing component is what is referred to as the basename of a path. Read More...

How to use Python Sets Thumbnail

How to use Python Sets

In this tutorial, we cover the basics of using sets in the Python programming language. We cover basics such as creating sets, adding items, deleting items, and using set operations. Read More...

Using the break Statement in PHP Thumbnail

Using the break Statement in PHP

In this guide, you will learn how to use the break statement in PHP. This statement allows you to break out of the currently running loop. In addition to being used to control loops, it is also an essential part of the switch structure. Read More...

Guide to PHP Arrays Thumbnail

Guide to PHP Arrays

This tutorial takes you through creating, accessing, altering, and deleting array elements in the PHP programming language. An array is one of the most used data structures in modern programing languages. Read More...

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...