![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/giraluanda.com/wp-content/plugins/the-events-calendar/src/functions/utils/ |
<?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 ); }