Q:

Remove same value in associative array

I have following associative array I wanna remove those ones that which have same value and keep one of theme(for example there is tow 124 value one of theme should be removed):
Array
        (
            [0] => 124
            [1] => 124
            [2] => 35
        )

A:

You must use array_unique() function
$array_unique = array_unique($array);

Results:
    Array
    (
        [0] => 124
        [2] => 35
    )

