程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> PHP中文函數連載

PHP中文函數連載

編輯:關於PHP編程

 

函數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()


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved