Quote:
unexpected end of file
is an indication for a missing closing brace.
In your case there is no closing brace for the
input()
function:
$input = $_POST['value'];
function input($input) {
if ($input = "Hello"){
echo "Hello";
}
else {
echo "What are you saying?"
}