# adminify/3.2.4.1/Libs/adminify-framework/functions/helpers.php

Adminify – White Label, Admin Menu Editor, Login Customizer, version 3.2.4.1. 54 lines.

- Page: https://pluginprobe.com/plugins/adminify/3.2.4.1/code/Libs/adminify-framework/functions/helpers.php
- Raw: https://pluginprobe.com/plugins/adminify/3.2.4.1/raw/Libs/adminify-framework/functions/helpers.php
- Modified: 2023-11-01T08:36:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/adminify/3.2.4.1/code/Libs/adminify-framework/functions/helpers.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die; } // Cannot access directly.
/**
 *
 * Array search key & value
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! function_exists( 'adminify_array_search' ) ) {
	function adminify_array_search( $array, $key, $value ) {
		$results = [];

		if ( is_array( $array ) ) {
			if ( isset( $array[ $key ] ) && $array[ $key ] == $value ) {
				$results[] = $array;
			}

			foreach ( $array as $sub_array ) {
				$results = array_merge( $results, adminify_array_search( $sub_array, $key, $value ) );
			}
		}

		return $results;
	}
}

/**
 *
 * Between Microtime
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! function_exists( 'adminify_timeout' ) ) {
	function adminify_timeout( $timenow, $starttime, $timeout = 30 ) {
		return ( ( $timenow - $starttime ) < $timeout ) ? true : false;
	}
}

/**
 *
 * Check for wp editor api
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! function_exists( 'adminify_wp_editor_api' ) ) {
	function adminify_wp_editor_api() {
		global $wp_version;
		return version_compare( $wp_version, '4.8', '>=' );
	}
}

```
