Created
March 7, 2016 07:13
-
-
Save d30jeff/c76130c4d1d9026d5027 to your computer and use it in GitHub Desktop.
Anyone can help me in array ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $arr = ['A','A','B','C','F','F']; | |
| $uniqueChars = array_diff_assoc($arr, array_unique($arr)); | |
| print_r($uniqueChars); // First Question | |
| print_r(current($uniqueChars)); // Second Question |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment