str_shuffle – PHP String Functions
Syntax : str_shuffle (string ); Description : str_shuffle() function will shuffles a string randomly. Parameter : string – This is a Required parameter. It is the input string on which shuffle will...
Syntax : str_shuffle (string ); Description : str_shuffle() function will shuffles a string randomly. Parameter : string – This is a Required parameter. It is the input string on which shuffle will...
Syntax : str_rot13 ( string ); Description : str_rot13() function Perform the ROT13 transform/encoding and decoding on a string. The ROT13 encoding simply shifts every letter by 13 places in the...
Syntax : str_replace ( find, replace, string, count ); Description : str_replace() function will replace all occurrences of the search string with the replacement string. It is case – sensitive function....
Syntax : str_repeat (string, repeat ); Description : str_repeat() function repeats a string a specified number of times.. Parameter : string – This is a Required parameter. It is the input string which...
Syntax : str_pad (string, length, pad_string, pad_type ); Description : str_pad() function will pad a string to a certain length with another string. Parameter : string – This is a Required parameter....
Syntax : str_ireplace ( find, replace, string, count ); Description : str_ireplace() function will replace all occurrences of the search string with the replacement string. It is case – insensitive function....
Syntax : str_getcsv ( string, separator, enclosure, escape ); Description : str_getcsv() function parse a CSV string into an array Parameter : string – This is a Required parameter. This is a string which...
Syntax : html_entity_decode ( strings, flags, encoding/character-set ); Description : html_entity_decode() function will converts HTML entities to their applicable characters. Note : htmlentities() function is reverse of it. Parameter : strings – This...
Syntax : htmlentities ( strings, flags, encoding/character-set, double_encode ); Description : htmlentities() function will converts all possible characters to HTML entities. Note : html_entity_decode() function is reverse of it. You can convert...
Syntax : ltrim ( string, charlist ); Description : ltrim() function will truncate spaces or other characters from starting of input string. We can remove “hi” from the starting of input string...
Syntax : rtrim ( string, charlist ); Description : rtrim() function will truncate spaces or other characters from the end of input string. We can remove “es.” from the end of input...
Syntax : trim ( string, charlist); Description : trim() function will truncate spaces or other characters from the beginning and end of input string. It will remove “hi” from starting and “es.”...
Syntax : hebrev ( string, charsperline ); Description : hebrev() function will convert Hebrew text from a right-to-left flow to a left-to-right flow. Basically it converts logical Hebrew text to visual text. It...
Syntax : hebrevc ( string, charsperline ); Description : hebrevc() function will convert Hebrew text from a right-to-left flow to a left-to-right flow with newline conversion. Basically it converts logical Hebrew text to...
Syntax : strtolower ( string ); Description : strtolower() function will take string as input and converts all letter to lowercase letter, if that character is alphabetic. Parameter : string – This is...
Syntax : strtoupper ( string ); Description : strtoupper() function will take string as input and converts all letter to uppercase letter, if that character is alphabetic. Parameter : string – This is...
Syntax : lcfirst ( string ); Description : lcfirst() function will take string as input and converts its first letter to lowercase letter, if that character is alphabetic. In general language, its...
Syntax : ucfirst ( string ); Description : ucfirst() function will take string as input and converts its first letter of a string to uppercase letter, if that character is alphabetic. In...
Syntax : ucwords ( string, seperator/delimiters ); Description : ucwords() function will take string as input and converts first letter of every word in a string to uppercase letter, if that character...
Syntax : join ( separator, array ); Description : join() function will glue(join) array elements in a string. join() is an alias of the PHP implode() function. Parameter : separator – Optional....