In the fourth phase of the PHP performance optimization series, how to use the PEARBenchmark tool to obtain the function execution performance is described in PHPWind and Discuz! The truncation functions substrs and cutstr in the two community
To learn how to use the Benchmark_Iterate tool.Directory1. What is PEAR and Benchmark?2. Performance Comparison code preparation and debuggingIii. Performance Comparison Test ResultsIv. Summary of performance comparison testsV. Download performance
Introduction: This is a detailed page for summary of several character functions in PHP. It introduces the knowledge, skills, and experience related to the Summary of several character functions in PHP, string, and PHP, and some PHP source code.
Use the Get member function to read all characters in a file, including whitespace characters, end of file.Use >> to read files and automatically ignore whitespace characters (spaces, line breaks, tabs)C + + predefined character functions (all
////main.c//homeWork1230////#include#includestring.h>#includeintMainintargcConst Char*argv[]) {///The/strstr (STR1,STR2) function is used to determine whether a string str2 is a substring of str1. If it is, the function returns the address that str2
Chr, unichr, and ord can be used as character type conversion in Python. here we will talk about the comparison between chr, unichr, and ord character functions in Python, for more information, see chr, unichr, and ord. they can be used as character
--Character functions--upper () converts a character to uppercase--lower () converts a character to lowercaseSELECT UPPER (' Liunan '), LOWER (' Liunan ')from dual;--Query Smith for information, write Smith in lowercase, convert to uppercase with
Wide character types and functions are newly added to the C and C ++ Standards (ANSI/ISO/IEC c 1999 and ISO/iec c ++ 1998/2003, they are used to support International Unicode (1993) character sets. Microsoft started to strictly implement the new C/C
Organize some of the commonly used intercept and find character functions:1. Find the number of occurrences of a character (string) in a stringSELECT LENGTH (regexp_replace (' Annelilyjane ', ' ', ' @ '), ' [^@]+ ', ') ') COUNT from DUAL; --Return 2
MySQL character functionThe following are some of the commonly used character functions in MySQL databases: (1) Character Connection First create a database named Imooc, and then use the concat () character join function to query:CREATE DATABASE
Numeric functions: 1, rounding function round () from dual: A row of a column composed of select round (23.4) from dual;--default not write M for M for 0select round (23.45,1) from dual;-- 1 means to keep one digit after the decimal point, then the
SQL single-row functions in Oracle databases-continued character FunctionsI practiced some character functions in the previous blog, and then I went to the next blog to read the relevant materials.The character function has not been practiced yet.
Oracle date functions:
Months_between: returns the difference of the month between two dates months_between ('01-EP-95 ', '11-Jan-94') ==> 19.6774194 add_months: Number of copies added to the date. add_months ('11-Jan-94 ', 6) ==> '11-JUL-94'
1. ctype. H series character Functions
Ctype. h character judgment FunctionWhen the function name is set to the following parameter, the returned value is an isalnum () letter or isalpha () letter iscntrl () controller, for example, CTRL + bisdigit (
PHP character functions. AddSlashes: Adds a slash to the string. Bin2hex: binary to hexadecimal. Chop: removes consecutive gaps. Chr: returns the character of the ordinal value. Chunk_split: splits a string into segments. C AddSlashes: Adds a slash
To master the method of using the Benchmark_iterate class tool.
Directory
One, what is pear and benchmark
Second, performance comparison code preparation and debugging
Third, performance comparison test results
Four, performance comparison test
1. String interceptionsubstr (String, start_position, [length])Cases:SelectSubstr'Hello World',1,2) fromDual--The returned result is ' He ' Note: A string of length 2 is intercepted starting from the first character of the stringSelectSubstr'Hello
C HR , ASCIIsyntax : CHR (string),ASCII (String)function: Returns a character that has an equivalent value in the database character set and X. CHR and ASCII are a pair of inverse functions. After the conversion of CHR character after the ASCII
UPPER (char) lowercase to uppercaseLOWER (char) uppercase to lowercaseInitcap (char) First letter conversionSUBSTR (Char,[m[,n]]) to intercept string functionsStart interception from the source string char m, intercept n bits you can omit, represent
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.