HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/studis.kauko.lt/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 );
}