Arrays help

Hi All

I have one serious problem…
I created an array MyArr where MyArr[0]=01-01-06 MyArr[1]=1.pkg MyArr[2]=2.pkg MyArr[3]=3.pkg MyArr[4]=4.pkg

Now I must check whether a particular element is present in the array or not…!
So I wrote a if loop saying if(contains(“1.pkg”,MyArr)==1) display saying yes it is there…or else display saying no…

But my code is creating me problems…Can anyone tell me a simple method of solving this…??

Thanks
Nirmal.