mixed abs (mixed number); Returns the absolute html' target='_blank'>value of number. If the argument number is float, return type is also float, otherwise it is int(返回所輸?shù)臄?shù)字的絕對(duì)值,浮點(diǎn)型返回浮點(diǎn)型,其他返回整型)函數(shù)Acos()描述:float acos (float arg); Returns the arc cosine of arg in radians(返回角的余弦值) Adabas D功能 函數(shù)ada_afetch() 描述: fetch a result row into an array(返回結(jié)果到一個(gè)數(shù)組里) 函數(shù)ada_autocommit() 描述: toggle autocommit behaviour 函數(shù)ada_close() 描述: close a connection to an Adabas D server (關(guān)掉一個(gè)數(shù)據(jù)庫(kù)的關(guān)聯(lián))函數(shù)ada_commit() 描述: commit a transaction (提交一個(gè)處理)函數(shù)ada_connect() 描述: connect to an Adabas D datasource(聯(lián)接一個(gè)數(shù)據(jù)庫(kù)) 函數(shù)ada_exec() 描述: prepare and execute a SQL statement(執(zhí)行一個(gè)SQL語(yǔ)句) 函數(shù)ada_fetchrow() 描述: fetch a row from a result(從數(shù)據(jù)庫(kù)中取一條記錄)函數(shù)ada_fieldname() 描述: get the columnname(得到字段名) 函數(shù)ada_fieldnum() 描述: get column number(得到字段的總數(shù))函數(shù)ada_fieldtype() 描述: get the datatype of a field(取得字段的類型)函數(shù)ada_freeresult() 描述: free resources associated with a result函數(shù)ada_numfields() 描述: get the number of columns in a result(在結(jié)果中得到字段數(shù)目)函數(shù)ada_numrows() 描述: number of rows in a result(所取結(jié)果的記錄數(shù))函數(shù)ada_result() 描述: get data from results(得到結(jié)果的數(shù)據(jù))函數(shù)ada_resultall() 描述: print result as HTML table(以HTML的格式輸出結(jié)果)函數(shù)ada_rollback() 描述: rollback a transaction函數(shù)apache_lookup_uri() 描述: 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 函數(shù)apache_note() 描述: 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 . 函數(shù)getallheaders() 描述: Fetch all HTTP request headers(取得所有HTTP頭部請(qǐng)求) 例子: $headers = getallheaders(); while (list($header, $value) = each($headers)) { echo $header: $value /n } 這個(gè)例子將顯示返回所有最近的頭部請(qǐng)求。 注:此函數(shù)只支持APACHE下的PHP 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 would 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.函數(shù)virtual() 描述: virtual()數(shù)組函數(shù) example函數(shù)array() 描述: 建立一個(gè)數(shù)組 array array(...)傳回一數(shù)組的值,這些值可以用= 來(lái)附值。 下面說(shuō)明了如何構(gòu)建一個(gè)二維數(shù)組,及如何指定這個(gè)數(shù)組的key,以及在正常的數(shù)組中以跳序的方式去指定數(shù)組的值。 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 ) );函數(shù)array_walk() 描述: 用函數(shù)的方式對(duì)每個(gè)數(shù)組的元素做處理 int array_walk (array arr, string func); 使用一個(gè)叫FUNC的函數(shù)對(duì)ARR的每個(gè)元素做處理,那些元素將當(dāng)成是首傳給FUNC的參數(shù);如果FUNC需要超過(guò)一個(gè)參數(shù),則在每次array_walk()呼叫FUNC時(shí)都產(chǎn)生一個(gè)警告信息,這些警告信息是可以消除的,只要把'@'符號(hào)加在array_walk()之前即可。 注意:FUNC會(huì)直接對(duì)ARR中的元素做處理,所以任何元素的變化將直接改變其在數(shù)組中的值。 Example 1. array_walk() example $fruits = array( d = lemon , a = orange , b = banana , c = apple function test_alter( $item1 ) { $item1 = 'bogus'; } function test_print( $item2 ) { echo $item2 /n } array_walk( $fruits, 'test_print' ); array_walk( $fruits, 'test_alter' ); array_walk( $fruits, 'test_print' );函數(shù)arsort() 描述: 以倒序的方式排列一數(shù)組但其序數(shù)則不變void arsort (array array); This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Example 1. arsort() example $fruits = array( d = lemon , a = orange , b = banana , c = apple arsort($fruits); for(reset($fruits); $key = key($fruits); next($fruits)) { echo fruits[$key] = .$fruits[$key]. /n }This example would display: fruits[a] = orange fruits[d] = lemon fruits[b] = banana fruits[c] = apple The fruits have been sorted in reverse alphabetical order, and the index associated with each element has been maintained. 函數(shù)asort() 描述: 順序排列一數(shù)組且其序數(shù)不變void asort (array array); This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Example 1. asort() example $fruits = array( d = lemon , a = orange , b = banana , c = apple asort($fruits); for(reset($fruits); $key = key($fruits); next($fruits)) { echo fruits[$key] = .$fruits[$key]. /n } This example would display: fruits[c] = apple fruits[b] = banana fruits[d] = lemon fruits[a] = orange The fruits have been sorted in alphabetical order, and the index associated with each element has been maintained.html教程