Hi, I am trying to sanitize my form input with strip_tags but getting the below message. I am not sure what is wrong with it. Please help. thx.

Warning: strip_tags() expects parameter 1 to be string, array given


PHP Code:
    function sanitize($value)
    {
        return 
trim(strip_tags($value));
    }