-
Php_strip_whitespace (parameter 1 path of PHP file)
-
-Returns the PHP source after deleting comments and spaces, and returns the PHP source after deleting comments and spaces filename .
-
This is useful for comparing the actual number of code with the number of comments. This function is similar to executing php-w under the command line .
-
Var_export (parameter 1 passed in string, parameter 2 is true)- outputs or returns a string representation of a variable
-
The second argument of the function is set TRUE to return the representation of the variable.
-
Token_get_all ($source a parameter for the PHP source code or the contents of the file)
-
Split the provided source code into PHP markup
-
More quotes when splitting
-
Base64_encode (String $data, one parameter requires encoded data)
-
This encoding is designed so that binary data can be transmitted over a non-pure 8-bit Transport Layer
-
base64-encoded data takes up about 33% more space than the original data.
-
Chunk_split (parameter 1 is the character to be split, the dimension of parameter 2 is split, the parameter 3 is the line end sequence symbol)
-
The return value is the split string
-
Splitting a string into small chunks
-
General and Base64_encode a piece of use
-
Realpath (parameter 1)
-
Returns the normalized absolute path name
-
Parameter 1 the path to check
-
Json_decode (parameter 1, parameter 2, parameter 3, parameter 4)
-
Encode a string in JSON format
-
Parameter 1 string encoded in JSON string with decoding
-
Parameter 2 returns an array instead of an object when True
-
Parameter 3 (int $depth =512) Parameter 4 sets the large integer to float by default
-
Json_encode (parameter 1, parameter 2)
-
JSON encoding of the variable, successfully returns a JSON form is a string, no side returns false
-
Parameter 1 The value to be encoded, except for any type other than the resource type, to accept only UTF-8 encoded data
-
Parameter 2 consists of constants consisting of a binary mask:
-
JSON_HEX_TAG(integer)
-
All < and > convert to \u003c and \u003e. Effective from PHP 5.3.0.
-
JSON_HEX_AMP(integer)
-
All & Convert to \u0026. Effective from PHP 5.3.0.
-
JSON_HEX_APOS(integer)
-
All the ' converted into \u0027. Effective from PHP 5.3.0.
-
JSON_HEX_QUOT(integer)
-
All of the "converted into \u0022. Effective from PHP 5.3.0.
-
JSON_FORCE_OBJECT(integer)
-
Causes a non-associative array to output a class (Object) instead of an array. This is especially useful when the array is empty and the recipient needs a Class (Object). Effective from PHP 5.3.0.
-
JSON_NUMERIC_CHECK(integer)
-
Encodes all numeric strings into numbers (numbers). Effective from PHP 5.3.3.
-
JSON_BIGINT_AS_STRING(integer)
-
Encodes a large number into the original value of a primitive character. Effective from PHP 5.4.0.
-
JSON_PRETTY_PRINT(integer)
-
Formats the returned data with whitespace characters. Effective from PHP 5.4.0.
-
JSON_UNESCAPED_SLASHES(integer)
-
Do not encode /. Effective from PHP 5.4.0.
-
JSON_UNESCAPED_UNICODE(integer)
-
To literally encode multibyte Unicode characters (the default is to encode into \uxxxx). Effective from PHP 5.4.0.
-
Uniqid (parameter 1, parameter 2)
-
Generates a unique ID based on the unique ID of the current time's subtle number
-
Parameter 1 Returns a string length of 13
-
Parameter 2 if More_entropy=true adds an additional fan at the end of the returned string
-
Http_build_query (parameter 1, parameter 2, parameter 3, parameter 4)
-
Request string after generating Url-encode
-
Parameter 1 can be an array or an object containing properties (only public will join)
-
Parameter 2 parameter 3 parameter 4 omitted
-
Spl_autoload_register (parameter 1)
-
Registration __autoload () function returns true otherwise false
-
Parameter 1 auto-load function to register, if no function is provided, the default implementation function of AutoLoad is automatically registered spl_autoload ()
-
Get_headers (parameter 1, parameter 2)
-
Gets the server response to all headers sent by an HTTP request, successfully returning an index or associative array, and failing to return false
-
Parameter 1 destination URL
-
Parameter 2 if set to 1get_headers () resolves the corresponding information and sets the array's key name
-
Ini_set (parameter 1, parameter 2)
-
Sets a value for a configuration option, returns the old value successfully, and returns false for failure
-
Parameter 1 is fixed for certain values
-
Parameter 2 option new value
-
Strpos (parameter 1, parameter 2, parameter 3)
-
Finds the first occurrence of a string where the current position is returned (default starting from 0), and the failure returns false
-
Parameter 1 finds in this string
-
Parameter 2 if Neddle is not a string, then he will be converted to a sequence value that is treated as a character
-
Parameter 3 if given, the search starts from the beginning of the character string and cannot be a negative number.
-
bool defined (str parameter 1)
-
Detects whether a constant of a name exists, returns True, and returns false
-
Parameter 1, the name of the constant
-
SHA1 (parameter 1, parameter 2)
-
Computes the SHA1 hash value of a string, returning the SHA1 hash value string
-
Parameter 1, input string
-
Parameter 2, if True then the SHA1 digest will be returned in the original format of 20 character length, otherwise the return value is a 40 string length of 16 binary digits
-
Mcrypt_encrypt (parameter 1, parameter 2, parameter 3, parameter 4)
-
Encrypts plaintext with the given parameters, returns the encrypted ciphertext, and fails to return false
-
Parameter 1, the algorithm name of the string value or MCRYPT_ciphername a mcrypt_rijndael_128 in the constant
-
Parameter 2, the encryption key, if the length is not the effective length that the algorithm can support, the function will issue a warning and return false
-
Parameter 3, the string that needs to be encrypted
-
Parameter 4, MCRYPT_MODE_modename one of the constants, or one of the following strings: "ECB", "CBC", "CFB", "OFB", "NOFB" and "stream". Mcrypt_mode_cbc
-
Parameter 5, $iv = Mcrypt_create_iv ($iv _size, Mcrypt_rand);
-
List (parameter 1, parameter 2, parameter 3)
-
Assigns the values in the array to some variables, returning the specified array
-
Parameter 11 variables
-
? $info = Array (' coffee ', ' brown ', ' caffeine ');
List ($a [0], $a [1], $a [2]) = $info;
PHP Common function usage