PHP Chinese function serialization (1 ). Function Abs () description: mixedabs (mixednumber); Returnstheabsolutevalueofnumber. Iftheargumentnumberisfloat, returntypeisalsofloat, otherwiseitisint (return the number of inputs)
Function Abs ()
Description:
Mixed abs (mixed number );
Returns the absolute value of number. if the argument number is float, return type is also float, otherwise it is int (returns the absolute value of the input number, float type returns the float type, and other returns the integer type)
Function Acos ()
Description:
Float acos (float arg );
Returns the arc cosine of arg in radians (Returns the cosine of the angle)
Adabas D function
Function ada_afetch ()
Description:
Fetch a result row into an array (returns the result to an array)
Function ada_autocommit ()
Description:
Toggle autocommit behaviour
Function ada_close ()
Description:
Close a connection to an Adabas D server (disconnect a database)
Function ada_commit ()
Description:
Commit a transaction (submit a process)
Function ada_connect ()
Description:
Connect to an Adabas D datasource (connect to a database)
Function ada_exec ()
Description:
Prepare and execute a SQL statement (execute an SQL statement)
Function ada_fetchrow ()
Description:
Fetch a row from a result (retrieve a record from the database)
Function ada_fieldname ()
Description:
Get the columnname (obtain the field name)
Function ada_fieldnum ()
Description:
Get column number (obtain the total number of fields)
Function ada_fieldtype ()
Description:
Get the datatype of a field (obtain the field type)
Function ada_freeresult ()
Description:
Free resources associated with a result
Function ada_numfields ()
Description:
Get the number of columns in a result (obtain the number of fields in the result)
Function ada_numrows ()
Description:
Number of rows in a result (number of records of the result)
Function ada_result ()
Description:
Get data from results (data obtained)
Function ada_resultall ()
Description:
Print result as HTML table (output result in HTML format)
Function ada_rollback ()
Description:
Rollback a transaction
Function apache_lookup_uri ()
Description:
Perform a partial request for the specified URI and return all info about it, This performs a partial request for a URI. it goes just far enough to obtain all the important information about the given resource and returns this information in a class. the properties of the returned class are:
Status: the_request, status_line, method, content_type, handler
Uri: filename, path_info, args, boundary, no_cache, no_local_copy, allowed, send_bodyct, bytes_sent, byterange, clength, unparsed_uri mtime, request_time
Function apache_note ()
Description:
Get and set apache request notes, apache_note () is an Apache-specific function which gets and sets values in a request's notes table. if called with one argument, it returns the current value of note note_name. if called with two arguments, it sets the value of note note_name to note_value and returns the previous value of note note_name.
Function getallheaders ()
Description:
Fetch all HTTP request headers (get all HTTP header requests)
Example:
$ Headers = getallheaders ();
While (list ($ header, $ value) = each ($ headers )){
Echo "$ header: $ value
";
}
In this example, all recent header requests are returned.
Note:The function only supports PHP under APACHE.Is an Apache-specific function which is equivalent to in mod_include. it performs an Apache sub-request. it is useful for including CGI scripts or. shtml files, or anything else that you wowould parse through Apache. note that for a CGI script, the script must generate valid CGI headers. at the minimum that means it must generate a Content-type header.
Function virtual ()
Description:
Virtual ()
ArrayFunctionExample
Function array ()
Description:
Create an array
Array (...) returns the values of an array. these values can be enclosed by =>.
The following describes how to construct a two-dimensional array, how to specify the key of the array, and how to specify the value of the array in the ascending order of the normal array.
Example 1. array ()
$ Fruits = array (
"Fruits" => array ("a" => "orange", "B" => "banana", "c" => "apple "),
"Numbers" => array (1, 2, 3, 4, 5, 6 ),
"Holes" => array ("first", 5 => "second", "third ")
);
Function array_walk ()
Description:
UseFunction method to process the elements of each array
Int array_walk (array arr, string func );
UseThe function processes each element of ARR. those elements are treated as parameters first transmitted to FUNC. if FUNC requires more than one parameter ()A warning message is generated when you call FUNC. the warning information can be eliminated. you only need to add the '@' symbol to array_walk ()Before.
Note: FUNC will directly process the elements in ARR, so any element changes will directly change its value in the array.
Example 1. array_walk () example
$ Fruits = array ("d" => "lemon", "a" => "orange", "B" => "banana ", "c" => "apple ");
Function test_alter ($ item1) {$ item1 = 'bogg ';}
Function test_print ($ item2) {echo "$ item2
";}
Array_walk ($ fruits, 'Test _ print ');
Array_walk ($ fruits, 'Test _ alter ');
Array_walk ($ fruits, 'Test _ print ');
Function arsort ()
Description:
Arrange an array in inverted order, but its ordinal number remains unchanged.
Void arsort (array );
This function sorts an array such that array indices maintain their correlation with the array elements they are associated. this is used mainly when sorting associative arrays where the actual element order is significant. example 1. arsort ()
Description: mixed abs (mixed number); Returns the absolute value of number. if the argument number is float, return type is also float, otherwise it is int (return the number of inputs...