文件操作 - ArrayStack.php
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/php/Laminas/Stdlib/ArrayStack.php
编辑文件内容
<?php declare(strict_types=1); namespace Laminas\Stdlib; use ArrayIterator; use ArrayObject as PhpArrayObject; use ReturnTypeWillChange; use function array_reverse; /** * ArrayObject that acts as a stack with regards to iteration * * @template TKey of array-key * @template TValue * @template-extends PhpArrayObject<TKey, TValue> */ class ArrayStack extends PhpArrayObject { /** * Retrieve iterator * * Retrieve an array copy of the object, reverse its order, and return an * ArrayIterator with that reversed array. * * @return ArrayIterator<TKey, TValue> */ #[ReturnTypeWillChange] public function getIterator() { $array = $this->getArrayCopy(); return new ArrayIterator(array_reverse($array)); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件