PHP String Functions Part 1 - English

1975 visits



Outline:

PHP String Functions (Part 1) strlen(string) - This function counts total no of characters, including numbers and white spaces in the string mb_substr(string,starting_position,no_of_characters) - This function takes a specific character from a string and a range of no of characters preceeding it. explode("delimiter",string) -This function breaks down the string into a array. Delimiter is used to know from where to break string. implode(string,"delimiter") -This function joins the array into a string. Delimiter is used to know how to join array elements. nl2br() -This function prints the content in exactly same form as written. Used in case for breaking lines.