- Trim ($ st)
Trim ($ st) Function for Space sides of the variable $ st.
- Ltrim ($ st)
Ltrim ($ st) Function for Space left of the variable $ st.
- Rtrim ($ st) / chop ($ st)
Rtrim ($ st) Function for Space right side of the variable $ st.
- Strlen ($ st)
Strlen ($ st) Function used to count the number of characters of the variable $ st.
- Strtolower ($ st)
Strtolower ($ st) Function used to convert $ st to lowercase .
-Strtoupper ($ st)
Strtoupper ($ st) user Fucntion for converters $ st to uppercase .
- Ucwords ($ st)
Ucwords ($ st) Function used to convert $ st into a capital letter at the beginning of words .
- Ucfirst ($ st)
Ucfirst ($ st) Function used to convert $ st into a capital letter at the beginning Pharagraph.
- Strpos ($ st)
Strpos ($ st1, $ st2) Function Return the position of String st2 in Str1 compare clockwise from front Character .
- Strrpos ($ str, $ st2)
Strrpos ($ st1, $ st2) it will strops () , but it shall be the right .
Note : Strpos and strrpos sensitive , small and large .
- Stripos ($ st1, $ st2) and Strripos ($ st1, $ st2)
- Strchr ($ st1, $ st2) / strstr ($ st1, $ st2)
It starts compared coming from Character .
- Strrchr ($ st1, $ st2)
- Stristr ($ st1, $ st2)
- Substr ($ st, start [, len])
Function Return String $ st starting position Start and Character .
- Str_replace (string search, string replace, string subject)
A Functon for search string Search String subject if it is found it will Replace String Replace if it find not found , it will Return String subject.
- Substr_replace ($ st, replace, start [, len])
Function used for Replace String $ st string Replace from Start and Character Set .
- Strcmp ($ st1, $ st2)
Function for comparing $ st1 and $ st2 by comparison of its sensitive .
- If $ st1> $ st2 Return 1
- If $ st1> $ st2 Return -1
- If $ st1 = $ st2 Return 0
- Strncmp ($ str1, $ str2, limit)
Its characteristics as strcmp just add Parameter N Parameter N indicates the number Character to be taken advantage of pay .
- Addslashes (str)
Function Add backslashe Ahead Pre-define character.
- Addcslashes (string st, stringcharlist)
Function for leading Add Backslash Character that we set .
- Stripslashes (str) / stripcslashes (str)
Function role Backslash string str.
- Str_split ($ st)
Function for Split character in $ st Array index character Split.
- Explode (string separator, string st [, int limit])
Function for separating String st String separator into Array that we set .
- Strrev ($ str)
Function for returning String $ str.
Monday, May 5, 2014
10.String Function
Subscribe to:
Post Comments (Atom)






0 comments:
Post a Comment