Strip_tags function Usage and example Tutorial _php tutorial

Source: Internet
Author: User
Definition and usage
The Strip_tags () function works except for all HTML, XML, and PHP tags.

Grammar

Strip_tags (String,allow)
Parameters
Description
String Required. The specified string check
Allow Optional Specifies the allowed label. These tags are not deleted

Tips and Notes Note: Comments on HTML are always stripped. This does not change the allowable parameters. Example 1

 
  World! ");? >
The result is.
Hello world!
Take another look at an example of a strip_tags function
 
  world!"," ");? >
world!

http://www.bkjia.com/PHPjc/445526.html www.bkjia.com true http://www.bkjia.com/PHPjc/445526.html techarticle the Strip_tags () function defines and uses the tag except for all HTML, XML, and PHP. The syntax strip_tags (string,allow) parameter describes the string required. The specified string check ...

  • Related Article

    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.