Skip to content

Tag Archives: PHP-string

A table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research,… Read More
Multi-Line Strings can be written in PHP using the following ways. Using escape sequences: We can use the \n escape sequences to declare multiple lines… Read More
In this article, we will find the last character of a string in PHP. The last character can be found using the following methods. Using… Read More
The purpose of this article is to extract numbers from a string using PHP. Approach: We can use the preg_replace() function for the extraction of… Read More
The best way to convert uppercase string to lowercase in PHP is by using the strtolower() function. It takes the string as the input and… Read More
In this article, we are going to replace the String with another by using the PHP built-in str_replace() function. A String is a collection of… Read More
A string is a collection of given characters and a substring is a string present in a given string. In this article, we are going… Read More
We have given two strings and the task is to append a string str1 with another string str2 in PHP. There is no specific function… Read More
We have given a string and the task is to remove white space only from beginning of a string or end from a string str… Read More
In this article, we will see how to remove special characters from strings in PHP, along with understanding their implementation through the examples. We have… Read More
We have given an array containing some array elements and the task is to join all the array elements to make a string. In order… Read More
We have given two strings and the task is to prepend a string str1 with another string str2 in PHP. There is no specific function… Read More
Given a string containing some words and the task is to replace all the occurrences of a word within the given string str in PHP.… Read More
Given a string element containing some spaces and the task is to remove all the spaces from the given string str in PHP. In order… Read More
Given a string containing some words and the task is to count number of words in a string str in PHP. In order to do… Read More

Start Your Coding Journey Now!