protected function getString($name, $inputArr)
    {
        foreach($inputArr as $input)
        {
            if(strpos($name, $input) !== false)
            {
                return $currAction = $input;
            }
        }
    }
protected function getString($name, $inputArr)
    {
        foreach($inputArr as $input)
        {
            if(strpos($name, $input) !== false)
            {
                return $currAction = $input;
            }
        }
    }
protected function getString ( $ name , $ inputArr ) { foreach ( $ inputArr as $ input ) { if ( strpos ( $ name , $ input ) !== false ) { return $ currAction = $ input ; } } }
Remove part of the given string that's the same to an element in the given array.

@param $name
@param $inputArr
@return mixed
Remove part of the given string that s the same to an element in the given array .