1 strlen ()
Calculates the length of a string.
strlen (' Hello ');
2 substr ();
Intercept string, three arguments, string, start, length
1) substr (String,start)-Get a string starting with Strat.
Note: Starting point is also starting from 0
2)substr (string,-1)-"If it is negative, get a string at the end of the original string."
3) substr (string, start, length) gets the specified length of the string.
3 Explode (separation method, string, number); -----"implode (), the effect of the join function opposite.
An array is returned after the split.
$email = ' [email protected] ';
$email _array = explode (' @ ', $email);
echo $email _array[1];
4 Strtolower (); Strtoupper (); String Case Conversion
5
This article is from the "Siege Lion" blog, please be sure to keep this source http://crazyzxl.blog.51cto.com/8781147/1690347
PHP String Functions