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

2024-11-25 09:51:42

1、新建php文件

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

2、创建名为$people的数组

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

3、为数组$people赋值

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

4、current() 函数返回数组中的当前元素的值

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

5、输出当前元素的值

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

6、预览效果如图

current() 函数返回数组中的当前元素的值
猜你喜欢