In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to share with you how php removes the tab blank space in the first place of the string. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
In php, you can use the ltrim () function to remove the tab white space character at the beginning of a string, with the syntax "ltrim (string)"; when you pass only one parameter to the ltrim () function that specifies the string to be checked, you can delete the white space character at the beginning of the string (for example, space, tab tab, newline character, etc.).
Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
In php, you can use the ltrim () function to remove the tab white space character from the first bit of a string.
The ltrim () function removes white space characters or other predefined characters from the beginning of a string.
Blank characters include: spaces, tabs tab, newline characters, and other white space characters.
The ltrim () function accepts two parameters:
The ltrim (string,charlist) parameter is required to describe string. Specifies the string to check. Charlist
Optional. Specifies which characters are removed from the string.
If this parameter is omitted, all the following characters are removed:
"\ 0"-NULL
"\ t"-tab tab
"\ n"-Line break
"\ x0B"-Vertical Tab
"\ r"-enter
""-Spac
Return value: returns the modified string.
Example: remove the tab space character (tab) from the first bit of the string
These are all the contents of the article "how php removes the tab blank character at the top of the string". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.