Today's course, the teacher mainly introduces the use of String functions, as well as the relevant contents of the escape character.
First, summary
1. Escape character "\"
(1) Role: In the PHP language there are some symbols with special meaning, such as {"," ", \, $}, we can use the escape character to restore the nature of its ordinary characters, style:" \ symbol itself. "
(2) Single quotes: Escape characters can only escape the single quotation mark and the escape character itself, and do not recognize the variable.
(3) in double quotes: You can escape all special characters and identify variables.
In the 2.PHP language, the string connector is: "."
3. String functions learned today: (1) explode (common), (2) implode (Common), (3) Ucfirst,lcfirst, (4) Trim, (5) sha1,md5 (Common), (6) printf, (7) Str_ Repeat (commonly used); (8) Str_replace; (9) Str_shuffle; (ten) strcasecmp; (one) strip_tags (common); () Stripos () 0; () strlen (commonly used) ; (+) substr (Common)
Second, the string function usage rules
650) this.width=650; "title=" 88.png "src=" http://s1.51cto.com/wyfs02/M00/8B/77/ Wkiol1hoxvgbgauhaajoqcfr5k8880.png-wh_500x0-wm_3-wmp_4-s_3151184818.png "alt=" Wkiol1hoxvgbgauhaajoqcfr5k8880.png-wh_50 "/>
This article is from the "12244280" blog, please be sure to keep this source http://12254280.blog.51cto.com/12244280/1882110
PHP Course Summary 20161212