请输入您要查询的百科知识:

 

词条 current
释义

current可以表示为函数的符号,也可以表示为英语单词。或者可以理解为计算机操作命令。

定义和用法

current() 函数返回数组中的当前元素(单元)。

每个数组中都有一个内部的指针指向它“当前的”元素,初始指向插入到数组中的第一个元素。

current() 函数返回当前被内部指针指向的数组元素的值,并不移动指针。如果内部指针指向超出了单元列表的末端,current() 返回 FALSE。

语法

current(array)

参数 描述

array 必需。规定要使用的数组。

提示和注释

注释:如果有空的元素,或元素没有值,该函数也返回 FALSE。

提示:该函数不会移动内部指针。要做到这一点,请使用 next() 和 prev() 函数。

例子

<?php $people = array("Peter", "Joe", "Glenn", "Cleveland");
echo current($people) . "<br />";
?>输出:

Peter

基本词义

current

adj.

当前的, 通用的, 流通的, 现在的, 草写的, 最近的

n.

涌流, 趋势, 电流, 水流, 气流

英英解释:

名词current:

1. a flow of electricity through a conductor

同义词:electric current

2. a steady flow (usually from natural causes)

同义词:stream

3. dominant course (suggestive of running water) of successive events or ideas

同义词:stream, flow

形容词current:

1. occurring in or belonging to the present time

习惯用语

against the current 逆流而行; 不同流俗breast the current 逆流而行go current 流行, 通用; 流传, 见信于世pass current 流行, 通用; 流传, 见信于世run current 流行, 通用; 流传, 见信于世go with the current 随波逐流swim with the current 随波逐流stem the current (船)逆潮流而行; 反潮流; 反抗; 阻止; 抑制住; 堵住...道路the current of events 事情的进展the current of time 时势, 时代潮流

例句与用法:

1. This button switches the current on.

这个电钮接通电流。

2. The current is strongest in the middle of the river.

河中央的水流最急。

3. This word is no longer in current use.

这个词现在已经不再使用。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/22 7:06:55