In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what are the string functions in PHP, which can be used for reference by interested friends. I hope you can learn a lot after reading this article.
String function
Strlen: get string length, byte length
Substr: intercept strings and get strings (intercepted by bytes)
Strchr: similar to substr, intercepting from the specified location to the end
Strrchr (get file suffix): just like strchr, only look for characters from the right
Strtolower: all characters are lowercase (for English letters)
Strtoupper: all characters are capitalized
Strrev: string reversal (English storage is only one byte), inverted by byte
Strpos: find the position of the corresponding character in the string (numeric subscript), starting from the far left
Strrpos: just like strpos, except to start on the right side of the string
Trim: remove the characters on both sides of the function. Default is a space.
Php what to use php is a nested acronym, is an English hypertext preprocessing language, its syntax mixed C, Java, Perl and php self-innovative syntax, mainly used to do website development, many small websites are developed in php, because php is open source, which makes php enduring.
Thank you for reading this article carefully. I hope the article "what are the string functions in PHP" shared by the editor will be helpful to you? at the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.