在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
函数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(返回所输的数字的绝对值,浮点型返回浮点型,其他返回整型) 函数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(返回角的余弦值) 函数ada_close() 函数ada_commit() 函数ada_connect() 函数ada_fieldname() 函数ada_fieldtype() 函数ada_freeresult() 函数count()
函数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()
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 );
0 => 0
$foo = array( "Robert" => "Bob", "Seppo" => "Sepi" ); $bar = each( $foo );
$bar now contains the following key/value pairs:
0 => 'Robert'
Example 2. Traversing $HTTP_POST_VARS with each() 老张QQ;2881064151 |
2022-08-30
2022-08-17
2022-11-06
2022-08-17
2022-07-18
请发表评论