in_array
PHP has a function called
in_array(), which allows you to check whether a certain value exists in an array.
Since i couldn't find a similar function in Javascript, i decided to create it myself.
Don't expect any groundbraking stuff .. it's actually a very simple function. I think i wrote it in under 1 min :-)