contains( needle )

Description:

Determine whether a string contains a specified substring or an array contains a specified item.

Input:

String or array to check.

Parameters:

needle

Substring or array item to look for.

Return:

True if the input is a string that contains the needle substring or if the input is an array that contains the needle item.