Php substring7/18/2023 ucwords: Converting first letter of every word to UpperCaseĬollecting sub string from any part of a string substr (string $string, int $start ).strip_tags: Removing html tags within a string.htmlspecialchars: Printing html special chars to the page.Separating domain and userid part from an email address using split.md5 hash of a string: encryption of a string.str_pad(): String pad with specified length.strcmp(): Case sensitive string comparison.strcasecmp(): Case insensitive string comparison.Random string generator with number and alphabets for password.function to collect part of a string with two landmarks.Validating for at lease one lower case or upper case or special chars in a string.ctype_lower() ctype_upper() : Checking for all lower of Upper chars in string.strtoupper() strtolower: function to change characters to upper case letters.str_repeat: Repeating a string number of times.substr_count: Counting occurrence of sub string in main string.explode: Breaking a string to form array using delimiters.split: Breaking a string to form array using delimiters.nl2br: Adding Line breaks inside a string in place of carriage returns.stristr: Searching for a presence of a string inside another string.strrev: Reversing a string by using strrev function in PHP.trim: Removing empty space from both sides of a string.strlen: How to find length of a string in PHP?.str_ireplace: Case in-sensitive search and replace using array of strings.str_replace: How to replace a part of a string with another string.
0 Comments
Leave a Reply. |