Mathematical functions1.abs (): Absolute value$abs = ABS (-4.2); 4.2 Numeric Absolute number2.ceil (): Into a method to take the wholeecho ceil (9.999); 10 floating point number in one rounding3.floor (): Rounding off the Rounding methodecho Floor (9
1. Length of Last Word
Given A string s consists of Upper/lower-case alphabets and empty space characters ' ", return the length of last word in The string.
If The last word does isn't exist, return 0.
Note:a word is defined as A character sequence
Regular Expressions (RegEx)--Quick referenceBasic knowledgeMatch anywhere: By default, regular expressions can match substrings anywhere in the searched string. For example, the regular expression ABC can match abc123, 123ABC, and 123abcxyz. To
1, stitching string
The concatenation string is one of the most commonly used string operations, there are three ways to stitch strings in PHP, which are dots. The delimiter {} operation, as well as the dot equals. = to operate, the dot equals sign
Mathematical functions1.abs (): Absolute value$abs = ABS (-4.2); 4.2 Numeric Absolute number2.ceil (): Into a method to take the wholeecho ceil (9.999); 10 floating point number in one rounding3.floor (): Rounding off the Rounding methodecho Floor (9
There are a lot of string functions in PHP Oh, it is said that PHP is composed of functions, which allows developers to speed up the development of the site Oh, well, crap don't say much. Let's take a look at my friends for free PHP string function
PHP Common function Summary mathematical function 1. ABS (): the absolute value $abs = ABS (-4.2); 4.2 Numeric value Absolute number 2. Ceil (): Take the whole echo ceil (9.999) in one method; 10 floating-point number into a whole 3. Floor (): To
arrays, strings, and databases are the most, most, and most commonly used functions in our functions, arrays and databases We haven't talked about it yet, and we'll come back to you when we talk about it.Of course, there are many string functions in
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.