golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/functions/utils
⬆️ Go Up
Upload
File/Folder
Size
Actions
array.php
531 B
Del
OK
install.php
541 B
Del
OK
labels.php
1.05 KB
Del
OK
Edit: 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 ); }
Save