PHP - Check that value doesn't appear twice in array

Posted by Industrial on Stack Overflow See other posts from Stack Overflow or by Industrial
Published on 2010-05-07T18:06:45Z Indexed on 2010/05/07 18:18 UTC
Read the original article Hit count: 211

Hi,

I have a array inside my PHP app that looks like this:

Array
(
    [0] => Array
        (
            [name] => Name1
            [language] => 1
        )

    [1] => Array
        (
            [name] => Name2
            [language] => 1
        )

)

How can I check that "language" with value 1 doesnt appear twice, as effectively as possible?

© Stack Overflow or respective owner

Related posts about php

Related posts about array