Available tutorials in php

Remove the First Character of a string in PHP

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

Get the First 2 Characters of a String in PHP

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

Remove the First 4 Characters of a string in PHP

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

Remove the last n elements from an array in PHP

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

Remove the first n elements from an array in PHP

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

Get the first 2 digits of a number in PHP

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

Get the last digit of a number in PHP

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

Get the last 2 digits of a number in PHP

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

Get the second digit of a number in PHP

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

Get the first digit of a number in PHP

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

Get the first character of a string in PHP

Get the first character of a string in PHP To get the first character…

Get the last character of a string in PHP

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

How to clear an array in PHP

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

Get the last n characters of a string in PHP

In this tutorial, we are going to learn about how to get 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…

Remove the last character of a string in PHP

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

Remove the first element from an array in PHP

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

Remove the last element from an array in PHP

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

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…

Check if variable is a array in PHP

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

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

To get the last 7 characters of a string in PHP, we can use the built…

Getting the length of an array in PHP

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

Check if a number is divisible by another number in PHP

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

How to get the first and last element of an array in PHP

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

How to get the last element of a array in PHP

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

How to get the first element of a array in PHP

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

PHP How to concatenate the two strings

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

How to check if a value exists in PHP array

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

How to repeat a string n times in PHP

In this tutorial, we are going to learn about how to repeat a string n…

How to get first n characters of a string in PHP

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

How to uppercase the first letter of a string in PHP

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

How to write comments in PHP

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

How to reverse a string in PHP

Learn, how to reverse a string in PHP. Using strrev() function To…

How to remove all whitespaces of a string in PHP

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

How to reverse an array in PHP

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

How to generate random alphanumeric string in PHP

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

Php: How to remove last 3 characters from a string

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

Php: Converting String to Boolean

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

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 previous year in PHP

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

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…

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 the element from an array by value in PHP

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

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…

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

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 write your first hello world program in PHP

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