文件操作 - array.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/functions/utils/array.php
编辑文件内容
<?php /** * Utility functions dealing with arrays */ /** * Drop-in replacement for array_unique(), designed to operate on an array of arrays * where each inner array is populated with strings (or types that can be stringified * while essentially keeping their unique value). * * @param array $original array_of_arrays * * @return array */ function tribe_array_unique( array $original ) { $unique = []; foreach ( $original as $inner ) { $unique[ join( '|', $inner ) ] = $inner; } return array_values( $unique ); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件