Available tutorials in php

How to write your first hello world program in PHP

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

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 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 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 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 convert an Array to a String in PHP

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

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 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 split comma separated string to array in PHP

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

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

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

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 count the number of digits in a integer in PHP

In this tutorial we are going to learn, how to count the number of…

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 generate random alphanumeric string in PHP

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

How to reverse an array in PHP

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

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 a string in PHP

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

How to write comments in PHP

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

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 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 repeat a string n times in PHP

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

Converting string into an array in PHP

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

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…

PHP How to concatenate the two strings

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

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…

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

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…

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

Check if variable is a array in PHP

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

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 check if a string is empty in PHP

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

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 sort an array of numbers in PHP

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

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 get a current year in PHP

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

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 clear an array in PHP

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

Get the last character of a string in PHP

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

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 first digit of a number in PHP

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

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 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 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 first n elements from an array in PHP

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

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 Character of a string in PHP

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

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

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

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…