PHP中文函數連載_PHP教程

來源:互聯網
上載者:User
函數Abs()

描述:

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(返回所輸的數位絕對值,浮點型返回浮點型,其他返回整型)

函數Acos()

描述:

float acos (float arg);

Returns the arc cosine of arg in radians(返回角的餘弦值)
Adabas D功能
函數ada_afetch()
描述:
fetch a result row into an array(返回結果到一個數組裡)
函數ada_autocommit()
描述:
toggle autocommit behaviour

函數ada_close()
描述:
close a connection to an Adabas D server (關掉一個資料庫的關聯)

函數ada_commit()
描述:
commit a transaction (提交一個處理)

函數ada_connect()
描述:
connect to an Adabas D datasource(聯結一個資料庫)
函數ada_exec()
描述:
prepare and execute a SQL statement(執行一個SQL語句)
函數ada_fetchrow()
描述:
fetch a row from a result(從資料庫中取一條記錄)

函數ada_fieldname()
描述:
get the columnname(得到欄位名)
函數ada_fieldnum()
描述:
get column number(得到欄位的總數)

函數ada_fieldtype()
描述:
get the datatype of a field(取得欄位的類型)

函數ada_freeresult()
描述:
free resources associated with a result

函數count()
描述:
計算一變數中元素的個數
int count (mixed var);
Returns the number of elements in var , which is typically an array (since anything else will have one element).
Returns 0 if the variable is not set.
Returns 1 if the variable is not an array.



函數current()
描述:
傳回數組指標目前所指的元素



mixed current (array array);



Each array variable has an internal pointer that points to one of its elements. In addition, all of the elements in the array are linked by a bidirectional linked list for traversing purposes. The internal pointer points to the first element that was inserted to the array until you run one of the functions that modify that pointer on 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 in any way. If the internal pointer points beyond the end of the elements list, current() returns false.



函數each()
描述:
返回數組中下一對key/value的值



array each (array array);



Returns the current key/value pair from the array array and advances the array cursor. This pair is 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.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445545.htmlTechArticle函數Abs() 描述: 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(返回所輸的數...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.