Available tutorials in php

How to clear an array in PHP

In this tutorial, we are going to learn about how to clear or empty an…

How to remove the first n characters of a string in PHP

In this tutorial, we are going to learn about how to remove the first…

How to remove the last n characters of a string in PHP

In this tutorial, we are going to learn about how to remove the last n…

How to get a current year in PHP

In this tutorial, we are going to learn about how to get the current…

How to get a previous year in PHP

In this tutorial, we are going to learn about how to get the previous…

Getting the length of an array in PHP

In this tutorial, we are going to learn about how to get the length of…

How to Find the length of a string in PHP

In this tutorial, we are going to learn about how to get the length of…

How to check if an array is empty in PHP

In this tutorial, we are going to learn about how to check if an array…

PHP How to concatenate the two strings

In this tutorial, we are going to learn about how to concatenate the…

How to remove the last character of a string in PHP

In this tutorial, we are going to learn about how to remove the last…

How to remove new line character from a string in PHP

In this tutorial, we are going to learn about how to remove the new…

How to remove all whitespaces of a string in PHP

In this tutorial, we are going to learn about how to remove the all…

Getting the first element of an array in PHP

In this tutorial, we are going to learn about how to get the first…

How to remove the element from an array by value in PHP

To remove the element from an array by value, we can use the…

Removing the first element from an array in PHP

Learn, how to remove the first element from an array in PHP. To remove…

Removing the last element from an array in PHP

Learn, how to remove the last element from an array in PHP. To remove…

How to split comma separated string to array in PHP

In this tutorial, we are going to learn about how to split the comma…

How to check if a string is empty in PHP

In this tutorial, we are going to learn about how to check if a string…

How to check if a string starts with another string in PHP

PHP doesn’t have any built-in function to check if a string starts…

How to insert a string in the specified position in PHP

PHP has a built-in function by using that we can insert a string at…

Getting the first character from a string in PHP

To get the first character from a string, we can use the function by…

How to get the last 7 characters from a string in PHP

To get the last 7 characters from a PHP string, we can use the…

How to convert an Array to a String in PHP

In this tutorial, we are going to learn about how to convert an array…

Converting string into an array in PHP

PHP has a built-in function by using that we can convert a string…

Removing the new lines from a string in PHP

To remove the new lines from a string and replace with a single space…

How to convert date string to date and datetime in PHP

We can use the and methods to convert a date string to date and…

How to get first n characters from a string in PHP

To get the first n characters from a string, we can use the built-in…

How to check whether a string contains a specific word in PHP

To check whether a string contains a specific word or not, we can use…

How to get the first element key in a array PHP

To get the first element key in a array we need to use the built-in…

How to remove elements from an array in PHP

PHP has a built-in function by using that we can remove elements from…

How to sort an array of numbers in PHP

In this example, you will learn about how to sort an array of numbers…

How to echo a boolean(true, false) in Php

To echo a boolean value, we can use the ternary operator () in Php…

Php: Converting String to Boolean

Lear, how to convert a string to boolean value in PHP. To convert a…

Php: How to remove last 3 characters from a string

To remove the last three characters from a string, we can use the…

How to remove empty elements from an array in PHP

PHP has a built-in function by using that we can remove the empty…

How to generate random alphanumeric string in PHP

This below function will help you to generate a random alphanumeric…

How to write your first hello world program in PHP

In this example, you will learn about how to write your first hello…