Skip to content

Instantly share code, notes, and snippets.

💀
The Working Dead

Marius Gerum mariusgerum

💀
The Working Dead
Block or report user

Report or block mariusgerum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mariusgerum
mariusgerum / array-duplicates.php
Created Apr 22, 2017
Check if an array has duplicates
View array-duplicates.php
<?php
/**
* ===============================
* Check if array has duplicates
* ===============================
*/
$arr = [ 1, 2, 3, 3 ];
You can’t perform that action at this time.