Fixed the parameter rule to array_search

Removed getArrayCopy() function on the function array_search