My friend insists that it is valid to write $h\in f(x)$ where $f:A\to B$ is just a set-theoretic function.
He says one need not write $h=f(x)$ to be correct, since $f(x)$ is the image of the singleton $\{x\}$, and the image of a morphism $f\in\text{Mor}(\mathsf{Set})$ is of course a set, so we have $f(x)=f|_{\{x\}}(x)$ is a set. If $f$ is injective, where '$f(x)=h$', then $h\in f(x)$ is valid. Is he correct?
Your friend is absolutely wrong, but one can see where his problems come from.
If $f\colon X\to Y$, we often want to consider its derived functions, direct and inverse image: $F\colon\mathcal P(X)\to\mathcal P(Y)$ given by $F(A)=\{f(a)\mid a\in A\}$, and $G\colon\mathcal P(Y)\to\mathcal P(X)$ given by $G(B)=\{a\in A\mid f(a)\in B\}$.
But often we write $f(A)$ instead of $F(A)$, or $f^{-1}(B)$ instead of $G(B)$. And we also have a tacit agreement that if $x\in X$, then since $F(\{x\})$ is a singleton $\{y\}$, and moreover $f(x)=y$, then we can confuse these without worry.
You can see this when $f$ is not injective, and then $f^{-1}(y)$ is "not well-defined", because we implicitly mean $f^{-1}(\{y\})$ or $G(\{y\})$. But then to make things simpler, we want to write $f^{-1}(f(x))$, so we really mean $\{f(x)\}$ there.
So while your friend is absolutely wrong, and writing $f(x)\in f(x)$ is confusing, misleading, and possibly even offensive to some people, it should be clear why he feels that this notation is even remotely "reasonable".