PHP uses the trim function to remove left and right spaces and special characters from a string. Examples of trim special characters_PHP tutorial

PHP中文网
Release: 2016-07-12 09:01:18
Original
864 people have browsed it


PHP uses the trim function to remove left and right spaces and special characters from a string. Examples of trim special characters


This article describes the use of PHP The trim function removes left and right spaces and special characters from a string. Share it with everyone for your reference, the details are as follows:

The trim() function in PHP is defined as follows:

trim(string,charlist)

The parameter description is as follows:

string required. Specifies the string to check.

charlist

Optional. Specifies which characters are removed from the string. If omitted, all following characters are removed:
"

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!