Skip to content

Tag Archives: PHP-string

Remove the very first character of a given string in PHP Examples: Input : Geeksforgeeks Output : eeksforgeeks Input :, Hello geek! Output : Hello… Read More
Given a sentence, a string and the position, the task is to insert the given string at the specified position. We will start counting the… Read More
The strncmp() is an inbuilt function in PHP which is used to compare first n character of two strings. This function is case-sensitive which points… Read More
The strip_tags() function is an inbuilt function in PHP which is used to strips a string from HTML, and PHP tags. This function returns a… Read More
The ctype_punct() function in PHP is used to check if all of the characters of a given string are punctuation characters or not. If all… Read More
The ctype_cntrl() function is an inbuilt function in PHP and is used to check if all the characters of a given string are control characters… Read More
The convert_cyr_string() function is a inbuilt function in PHP. The function is used to convert a string form one Cyrillic character-set to another. Here two… Read More
The ctype_upper() function in PHP used to check each and every character of a given string is in uppercase or not. If the string in… Read More
The ctype_print() Function in PHP used to check each and every character of a string are visible or not. If all characters of string are… Read More
It replaces given substring in a string with another given string. We can also use it to do multiple replacements by passing an array of… Read More
Like C strtok(), PHP strtok() is used to tokenize a string into smaller parts on the basis of given delimiters It takes input String as… Read More
Sometimes there is a need of parsing XML data in PHP. There are a handful of methods available to parse XML data. SimpleXML is one… Read More
The soundex() function is a built-in function in PHP and is used to calculate the Soundex key of a given string. The soundex key is… Read More
The strval() function is an inbuilt function in PHP and is used to convert any scalar value (string, integer, or double) to a string. We… Read More
The trim() function in PHP is an inbuilt function which removes whitespaces and also the predefined characters from both sides of a string that is… Read More

Start Your Coding Journey Now!