SUBSTR ();
SUBSTR (str,start,length);
Example: substr (PHP is very good language,4,5);
The output is the is ve;
When the length of the START>STR, it is returned as ();
substr (PHP is very good language,26,5);
substr (PHP is very good language,4);
Output as (blank)
Output is V (indicates start and langth are 4)
When start is negative, start reading from the end of STR (* This is read from 1 instead of starting at 0).
substr (PHP is very good language,-4,5);
Output is Uage
When length is a negative value, length represents the end of the read from the end and intercepts the ending position of str.
substr (PHP is very good language,4,-5);
Output is very good LAN
Explode () splits the function string into arrays;
Strrev () the function string
Setlocalhost (content location) sets the local environment. Content, which specifies the scene information constants that need to be set (
lc_all– Constants for all subordinates
lc_collate– Sorting order
lc_ctype– character classification and conversion (for example, converting all characters to lowercase or uppercase)
lc_messages– System Information Format
lc_monetary– Currencies/Currency formats
lc_numeric– Numeric format
lc_time– Date and time formats
Location, set up a national region, for example, chs.
Strftime () Formats the local time/date according to the locale setting.
http://www.bkjia.com/PHPjc/486083.html www.bkjia.com true http://www.bkjia.com/PHPjc/486083.html techarticle substr (); substr (str,start,length); Example: substr (PHP is very good language,4,5); the output is the is ve; when the length of the STARTSTR is returned as (); SUBSTR (P HP is very good language,26,5) ...