Stop a function

Where did you define $input, I don’t see it anywhere?