public function inArray()
    {
        $needle = $this->getParameter('value');
        $haystack = $this->getParameter('array');

        if($haystack instanceof Meta){
            $haystack = $haystack->getMetaValue();
        }

        if(is_string($haystack))
            $haystack = StringUtils::smartExplode($haystack);

        return in_array($needle, (array)$haystack);
    }
public function inArray()
    {
        $needle = $this->getParameter('value');
        $haystack = $this->getParameter('array');

        if($haystack instanceof Meta){
            $haystack = $haystack->getMetaValue();
        }

        if(is_string($haystack))
            $haystack = StringUtils::smartExplode($haystack);

        return in_array($needle, (array)$haystack);
    }
public function inArray ( ) { $ needle = $ this -> getParameter ( 'value' ) ; $ haystack = $ this -> getParameter ( 'array' ) ; if ( $ haystack instanceof Meta ) { $ haystack = $ haystack -> getMetaValue ( ) ; } if ( is_string ( $ haystack ) ) $ haystack = StringUtils :: smartExplode ( $ haystack ) ; return in_array ( $ needle , ( array ) $ haystack ) ; }
Returns true if 'value' is found in array 'array'

Expected Params:
value string The item to search for in the array
array array  The array to search

@return boolean true if value is in array
Returns true if value is found in array array