WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/helpers/class-arr.php (4.19 KB)
<?php
/**
 * The Array helpers.
 *
 * @since      1.0.0
 * @package    RankMath
 * @subpackage RankMath\Helpers
 * @author     RankMath <support@rankmath.com>
 */

namespace RankMath\Helpers;

use ArrayAccess;

/**
 * Arr class.
 */
class Arr {

	/**
	 * Determine whether the given value is array accessible.
	 *
	 * @param mixed $value Value to check.
	 *
	 * @return bool
	 */
	public static function accessible( $value ) {
		return is_array( $value ) || $value instanceof ArrayAccess;
	}

	/**
	 * Determine if the given key exists in the provided array.
	 *
	 * @param ArrayAccess|array $arr Array to check key in.
	 * @param string|int        $key   Key to check for.
	 *
	 * @return bool
	 */
	public static function exists( $arr, $key ) {
		if ( $arr instanceof ArrayAccess ) {
			// @codeCoverageIgnoreStart
			return $arr->offsetExists( $key );
			// @codeCoverageIgnoreEnd
		}

		return array_key_exists( $key, $arr );
	}

	/**
	 * Check whether an array or [[\Traversable]] contains an element.
	 *
	 * This method does the same as the PHP function [in_array()](https://secure.php.net/manual/en/function.in-array.php)
	 * but additionally works for objects that implement the [[\Traversable]] interface.
	 *
	 * @throws \InvalidArgumentException If `$arr` is neither traversable nor an array.
	 *
	 * @param array|\Traversable $arr  The set of values to search.
	 * @param mixed              $search The value to look for.
	 * @param bool               $strict Whether to enable strict (`===`) comparison.
	 *
	 * @return bool `true` if `$search` was found in `$arr`, `false` otherwise.
	 */
	public static function includes( $arr, $search, $strict = true ) {
		if ( $arr instanceof \Traversable ) {
			return self::includes_traversable( $arr, $search, $strict );
		}

		$is_array = is_array( $arr );
		if ( ! $is_array ) {
			throw new \InvalidArgumentException( 'Argument $arr must be an array or implement Traversable' );
		}

		return $is_array ? in_array( $search, $arr, $strict ) : false; // phpcs:ignore
	}

	/**
	 * Check Traversable contains an element.
	 *
	 * @param \Traversable $arr  The set of values to search.
	 * @param mixed        $search The value to look for.
	 * @param bool         $strict Whether to enable strict (`===`) comparison.
	 *
	 * @return bool `true` if `$search` was found in `$arr`, `false` otherwise.
	 */
	private static function includes_traversable( $arr, $search, $strict = true ) {
		foreach ( $arr as $value ) {
			if ( ( $strict && $search === $value ) || $search == $value ) { // phpcs:ignore
				return true;
			}
		}

		return false;
	}

	/**
	 * Insert a single array item inside another array at a set position
	 *
	 * @param array $arr      Array to modify. Is passed by reference, and no return is needed.
	 * @param array $new_arr  New array to insert.
	 * @param int   $position Position in the main array to insert the new array.
	 */
	public static function insert( &$arr, $new_arr, $position ) {
		$before = array_slice( $arr, 0, $position - 1 );
		$after  = array_diff_key( $arr, $before );
		$arr    = array_merge( $before, $new_arr, $after );
	}

	/**
	 * Push an item onto the beginning of an array.
	 *
	 * @param array $arr Array to add.
	 * @param mixed $value Value to add.
	 * @param mixed $key   Add with this key.
	 */
	public static function prepend( &$arr, $value, $key = null ) {
		if ( is_null( $key ) ) {
			array_unshift( $arr, $value );
			return;
		}

		$arr = [ $key => $value ] + $arr;
	}

	/**
	 * Update array add or delete value
	 *
	 * @param array $arr Array to modify. Is passed by reference, and no return is needed.
	 * @param array $value Value to add or delete.
	 */
	public static function add_delete_value( &$arr, $value ) {
		if ( ( $key = array_search( $value, $arr ) ) !== false ) { // @codingStandardsIgnoreLine
			unset( $arr[ $key ] );
			return;
		}

		$arr[] = $value;
	}

	/**
	 * Create an array from string.
	 *
	 * @param string $value     The string to split.
	 * @param string $separator Specifies where to break the string.
	 *
	 * @return array Returns an array after applying the function to each one.
	 */
	public static function from_string( $value, $separator = ',' ) {
		return array_values( array_filter( array_map( 'trim', explode( $separator, $value ) ) ) );
	}
}
namawaktuukuranownerpermaksi
..
class-analytics.php 2026-07-21 14:141.9 KB 76129f60960:kunden-xw-x-----
edt
class-api.php 2026-07-21 14:143.43 KB 76129f60960:kunden-xw-x-----
edt
class-arr.php 2026-07-21 14:144.19 KB 76129f60960:kunden-xw-x-----
edt
class-attachment.php 2026-07-21 14:144.13 KB 76129f60960:kunden-xw-x-----
edt
class-choices.php 2026-07-21 14:1425.38 KB 76129f60960:kunden-xw-x-----
edt
class-conditional.php 2026-07-21 14:1410.34 KB 76129f60960:kunden-xw-x-----
edt
class-content-ai.php 2026-07-21 14:1415.8 KB 76129f60960:kunden-xw-x-----
edt
class-db.php 2026-07-21 14:147.66 KB 76129f60960:kunden-xw-x-----
edt
class-editor.php 2026-07-21 14:14765 B 76129f60960:kunden-xw-x-----
edt
class-html.php 2026-07-21 14:141.8 KB 76129f60960:kunden-xw-x-----
edt
class-locale.php 2026-07-21 14:14945 B 76129f60960:kunden-xw-x-----
edt
class-options.php 2026-07-21 14:141.79 KB 76129f60960:kunden-xw-x-----
edt
class-param.php 2026-07-21 14:142.39 KB 76129f60960:kunden-xw-x-----
edt
class-post-type.php 2026-07-21 14:144.88 KB 76129f60960:kunden-xw-x-----
edt
class-schedule.php 2026-07-21 14:145.42 KB 76129f60960:kunden-xw-x-----
edt
class-schema.php 2026-07-21 14:143.96 KB 76129f60960:kunden-xw-x-----
edt
class-security.php 2026-07-21 14:141.38 KB 76129f60960:kunden-xw-x-----
edt
class-sitepress.php 2026-07-21 14:143.92 KB 76129f60960:kunden-xw-x-----
edt
class-str.php 2026-07-21 14:146.69 KB 76129f60960:kunden-xw-x-----
edt
class-taxonomy.php 2026-07-21 14:145.26 KB 76129f60960:kunden-xw-x-----
edt
class-url.php 2026-07-21 14:143.91 KB 76129f60960:kunden-xw-x-----
edt
class-wordpress.php 2026-07-21 14:1422.12 KB 76129f60960:kunden-xw-x-----
edt
index.php 2026-07-21 14:1428 B 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/helpers
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK