Skip to content

Tag Archives: PHP-string

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 soudex 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
The crc32() function helps us to calculate a 32-bit crc or cyclic redundancy checksum polynomial for a string. The function uses the CRC32 algorithm.This function… Read More
The ucwords() function is a built-in function in PHP and is used to convert the first character of every word in a string to upper-case.… Read More
The lcfirst() function is a built-in function in PHP which takes a string as an argument and returns the string with the first character in… Read More
The strlen() is a built-in function in PHP which returns the length of a given string. It takes a string as a parameter and returns… Read More
The ucfirst() function is a built-in function in PHP which takes a string as an argument and returns the string with the first character in… Read More
The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets… Read More
The strcasecmp() function is a built-in function in PHP and is used to compare two given strings. It is case-insensitive. This function is similar to… Read More