Does an array contain an element?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado@zipmail.com

    #1

    Does an array contain an element?

    Hi,

    I'm using PHP 4.4.4. Is there a shorter way to check if an array has
    an element besides doing a for loop and iterating through each element?

    Thanks, - Dave

  • Michael Fesser

    #2
    Re: Does an array contain an element?

    ..oO(laredotorn ado@zipmail.com )
    >I'm using PHP 4.4.4. Is there a shorter way to check if an array has
    >an element besides doing a for loop and iterating through each element?


    Micha

    Comment

    Working...