There are many PHP functions that need to be queried by the API.
Copy Code code as follows:
/*
#数组 No Limit size: $arr [0]=1; $arr [1]=2; $arr =array ("0", "1"); $list ($num 1, $num 2) = $arr;
Array range (int low,int high[,int Step])
The polymorphic algorithm described here is part of the reusable functionality provided by the Java platform. They all come from collection classes, all in the form of static methods, with the first argument being a collection of actions to take.
Array ("Key" => "value");
Display array
Print_r ($array);
Use the compact () function to create a new array and make the argument a cell of the new array;
$newArray = Compact ("Red", "green", "yellow", "Blue", "array");
Use the Extract ()
Fixed collection (for logging)A fixed set needs to be created in advance, and its size is fixed. When a fixed collection is full, if you insert a new document again, the pinned collection automatically removes the oldest document from the collection.
The normal collection in MongoDB is dynamic and can automatically grow to accommodate more data, whereas there is another set called a fixed set.(1) The fixed set needs to realize the explicit creation, the collection size is fixed;(2) Once the
Tip One, minimizing disk access to memory access is much faster than disk access. So the essence of using optimization is to reduce access to the disk as much as possible.Memory is read 1 million times times faster than disk speed. It takes a long
1 Find the character position function: Strpos ($str, $seach, [int]); Find the first position of search in $str starting with int; Stripos ($str, $seach, [int]); The function returns the position of the first occurrence of the string in another
MAPMap is used to hold data for a specific mapping, so there are two sets of values stored in the map collection, one set of values to hold the key in the map, and the other set of values to hold the Value,key and value in the map can be any type of
1. Brief introductionCapped collections is a well-performing, fixed-size collection that performs used (aging-out) processing with LRU (Least recently age-out Least recently used) rules and insertion order, automatically maintaining the order in
A Java array is a Java object. The length of an array is fixed. Only data of the same type can be stored in the same array. An array can store data of the basic type, you can also store reference data. When creating an array object, you must specify
Tar command:
Main Operation Mode:-A, -- catenate, -- concatenate append tar files to an archive-C, -- Create create a new archive-D, -- diff, -- Compare find differences between archive and File System-- Delete from the archive (not on Mag tapes
First, set mapping1. Set interfaceFor example, a 1:n relationship, an object that corresponds to multiple objects, how are these objects saved? You need to save these objects using a collection. One category corresponds to a number of items.
String
Common commands:
Get, set, INCR, Decr mget, and so on, ordinary key/value storage can be classified as such
Hash
Common commands:
Hget,hset,hgetall and so on.
List (Queue)
Common commands:
PHP string comparison functions strcmp () and strcasecmp () use summary, strcmpstrcasecmp
Comparing strings is one of the most important features of string handling in any programming language. In addition to using the comparison operation notation
For Web programming, the most important thing is to access and read and write data. There may be many ways to store them, such as strings, arrays, files, and so on. arrays, which can be said to be a more important way of data application in PHP. PHP
PHP two-dimensional array sorting function, the default natural sort, that is sort. Here you can specify a number of methods to sort by a value in a two-dimensional array, depending on the program note below.
Copy CodeThe code is as follows:
/**
* @
Official Manual (http://us.php.net/manual/en/function.natsort.php)
CopyCode The Code is as follows: bool natsort (array & $ array)
This function implements a sort algorithm that orders alphanumeric strings in the way a human being wocould while
Transferred from: http://blog.sina.com.cn/s/blog_6f7a7fb501017p8a.htmlFirst, use attributes instead of accessible fields1,. NET data binding only supports data binding, the use of attributes can obtain the benefits of data binding;2. The get and set
Packagecom. Map;Importjava.util.Collection;ImportJava.util.HashMap;ImportJava.util.Iterator;ImportJava.util.Map;ImportJava.util.Map.Entry;ImportJava.util.Set;/* * Introduce map * We know that the collection is for storing objects. The collection
String[HTML]View PlainCopy
1, String
Common commands:
In addition to operations such as GET, set, INCR, Decr mget, Redis also provides the following actions:
Get string length
Append content to a string
Set and get a
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.