Tag Archives: PHP-string

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
We have given a string and the task is to remove special characters from a string str in PHP. In order to do this task,… 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
We have given a string and the task is to count number of characters in a string str in PHP. In order to do this… Read More
The is_string() function is an inbuilt function in PHP which is used to check whether the given value is a string or not. Syntax: bool… Read More
The ctype_lower() function is an inbuilt function in PHP which is used to check whether the given characters in the string is lower case or… Read More
The setlocale() function is an inbuilt function in PHP which is used to set locale information. Locale setting means assigning your system a geographical location… Read More
Regular expressions commonly known as a regex (regexes) are a sequence of characters describing a special search pattern in the form of text string. They… Read More
Single or double quotes in PHP programming are used to define a string. But, there are lots of differences between these two. Single-quoted Strings: It… Read More
To get a substring between two strings there are few popular ways to do so. Below the procedures are explained with the example. Examples: Input:$string="hey,… Read More