PHP Course Summary 20161212

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.