Available tutorials in php

Removing the first element from an array in PHP

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

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 last element from an array in PHP

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

How to check whether a string is empty in PHP

To check whether a given string is empty or not, we can use the built…

How to split a comma separated string to an array in PHP

We can split a comma () separated string to an array by using the…

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

PHP has a built-in function by using that we can convert an array to…

Converting string into an array in PHP

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

Remove new line character from a string PHP

To remove the new line character from a string, we can use the…

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 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 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 get first element of an array in PHP

To get the first element of an array we need to use the built-in…

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

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

How to remove whitespaces from a string in PHP

To remove all whitespaces from a string, we can use the method 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 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…

How to concatenate the two strings in PHP

To concatenate the two strings we need to use period concatenation…