Regular expression of PHP knowledge point review
Technical knowledge of regular expressions[] Define character sets and example [A-z] [a-z] [0-9] [\f\r\n\t]Locator ^[a-z][0-9]$ Start endQuantifier * +? {n} {m,n} {N.} Refers to the number of
PHP with notes 3
[a-z]*/# excluded characters [^]# [^a-za-z] except for characters other than the # # qualifier (? *+{n,m})/*? Match the preceding character 0 times or once colo?r can match colour color+ match the preceding character once or
Maven ReferenceDependency> groupId>Com.github.dblockgroupId> Artifactid>Oshi-coreArtifactid> version>LATESTversion>Dependency>Get CPU Information sampleImportOshi.
First, DOM1) Dom and JavaScriptThe Document Object Model (DOM) is a language-independent program Interface (API) for manipulating XML and HTML documents.Browsers typically implement the DOM and JavaScript independently. For example, Chrome uses
Shell Common knowledge points---------------------------------------SED usage http://www.cnblogs.com/edwardlost/archive/2010/09/17/1829145.htmlSED is a non-interactive editor. It does not modify the file unless you use Shell redirection to save the
from:http://blog.csdn.net/engledb/article/details/19623087 Six, common examples1. P commandThe command p is used to display the contents of the pattern space. By default, sed prints the input lines on the screen, and option-n is used to cancel the
The configuration file read-write class, which has the following methods:1. Ability to read into a specified configuration file2. Support the ability to add a configuration item at any time3. Strong enough to write configuration information for
Str_split () can split the string according to the required length, but if the string has UTF-8 encoded in Chinese, it will appear garbled.Additional processing is required if you need to implement features that support Chinese characters that are
PHP has its own analysis. csv function: fgetcsv
Array fgetcsv (int $handle [, int $length [, String $delimiter [, String $enclosure]]]Handle a valid file pointer generated by fopen (), Popen (), or fsockopen ().Length (optional) must be greater
integral type -usually referred to as an integer or integral, is a positive or negative integer, with no decimal points.
long integer-an infinite number of integers, and the integer is finally an uppercase or lowercase L.
float
Copy Code code as follows:
Function Splitx (strs1 As String, strs2 as String, n as Integer)
' Custom segment function Splitx ([string], ' delimiter ', nth paragraph)
Dim groupst () as String
Groupst = Split (strs1, Strs2)
If UBound
1. What is the definition of a variable? How do I check that a variable is defined? How do I delete a variable? How do I detect if a variable is set? $ defines whether the isset ()//check variable is setDefined ()//Detect constants are setUnset
Skill
1. Several common functions
Round (pi, 2) roundedFormatNumber (k,4) ' formats K as a number with four-bit decimal points.eg. If K =20000 is shown as 20,000.00 if FormatNumber (k,0) is 20,000Replace (Expression,find,replacewith) ' returns a
TurnFrom where a great God turned, let's study together. The sample code will be incrementally added in the future.NumPy NumPy is the foundation package for high performance scientific computing and data analysis. Some of the functions are as
Type of a value
(1) Integral typeThe integer type is divided into two, if within 31 digits (four bytes), that is the Fixnum instance. If more than, that is the Bignum instance.
Copy Code code as follows:
#整型 integer below are some
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
In this paper, we introduce the methods of converting strings and arrays in JavaScript, and share them for everyone's reference, as followsThe reciprocal conversion of strings and arrays is very important, because in the actual coding process will
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.