PHP Chinese function Serial _php tutorial

Source: Internet
Author: User
Tags acos
Function abs ()

Describe:

Mixed ABS (mixed number);

Returns the absolute value of number. If The argument number is a float, return type is also float, otherwise it is int (returns the absolute value of the lost digit, floating-point return float, other return integral type)

function ACOs ()

Describe:

Float ACOs (float arg);

Returns the arc cosine of Arg in radians (the cosine of the return angle)
Adabas D function
function Ada_afetch ()
Describe:
Fetch a result row into an array (returns results to an array)
function Ada_autocommit ()
Describe:
Toggle autocommit Behaviour

function Ada_close ()
Describe:
Close a connection to an Adabas D server (turns off the association of a database)

function Ada_commit ()
Describe:
Commit a transaction (submit a deal)

function Ada_connect ()
Describe:
Connect to an Adabas D datasource (joins a database)
function Ada_exec ()
Describe:
Prepare and execute a SQL statement (executes an SQL statement)
function Ada_fetchrow ()
Describe:
Fetch a row from a result (fetch a record from the database)

function Ada_fieldname ()
Describe:
Get the ColumnName (get field name)
function Ada_fieldnum ()
Describe:
Get column number (gets the total of fields)

function Ada_fieldtype ()
Describe:
Get the datatype of a field (Gets the type of fields)

function Ada_freeresult ()
Describe:
Free resources associated with a result

function count ()
Describe:
Calculate the number of elements in a variable
int count (mixed Var);
Returns the number of elements in Var, which was typically an array (since anything else would have one element).
Returns 0 If the variable is not set.
Returns 1 If the variable is not a array.



function current ()
Describe:
Returns the element that the array pointer currently refers to



Mixed current (array array);



Each of the array variable have an internal pointer that points to one of its elements. In addition, any of the elements in the array is linked by a bidirectional linked list for traversing purposes. The internal pointer points to the first element, is inserted to the array until you run one of the functions that MO Dify that pointer on the that array.



The current () function simply returns the array element, that's currently being pointed by the internal pointer. It does not move the pointer on any. If the internal pointer points beyond the end of the elements list, current () returns false.



function each ()
Describe:
Returns the value of the next pair of Key/value in the array



Array each (array array);



Returns the current Key/value pair from the array array and advances the array cursor. This pair was returned in a four-element array with the keys 0, 1, key, and value. Elements 0 and key each contain the key name of the array element, and 1 and value contain the data.



Example 1. each () examples



$foo = Array ("Bob", "Fred", "Jussi", "Jouni"); $bar = each ($foo);
$bar now contains the following key/value pairs:



0 = 0
1 = ' Bob '
Key = 0
Value = ' Bob '



$foo = Array ("Robert" = "Bob", "Seppo" = "Sepi"); $bar = each ($foo);



$bar now contains the following key/value pairs:



0 = ' Robert '
1 = ' Bob '
Key = ' Robert '
Value = ' Bob '



Example 2. Traversing $HTTP _post_vars with each ()


http://www.bkjia.com/PHPjc/445545.html www.bkjia.com true http://www.bkjia.com/PHPjc/445545.html techarticle function abs () Description: Mixed abs (mixed number); Returns the absolute value of number. If The argument number is a float, return type is also float, otherwise it is int (returns the numbers lost ...)

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.