Your question isn't so clear so I'll try to answer in the more coplete way.
There are two cases to consider:
- $A$ is a finite integral domain;
- $A$ is an infinite integral domain.
In case 1. $A$ is a field, this can easily be proven observing that for every $a \in A$ because $A$ is an integral domain the map
$$x \in A \mapsto a x \in A$$
is a injective endo-function on a finite set, so bijective.
In this case clearly we know that for every polinomial $f \in A[x]$ is such that $\varphi(f)=0$ if and only if for every $a \in A$ we have $f(a)=0$ (or more correctely $\phi(f)(a)=0$). This, for the polynomial remainder theorem, imply that for each $a \in A$ have to be $(x-a) \mid f$ and so $\prod_{a \in A}(x-a) \mid f$ (because the polynomial $x-a$ are coprime).
Let's pass to the more interesting case, the case 2: $A$ is infinite.
Let $K$ be the field of fractions of $A$, clearly $K$ is infinite.
If $f \in A[x]$ is such that $\phi(f)=0$ this implies that for every $a \in A$ we have that $(x-a) \mid f$ as polynomial in $K[x]$, but from this would follow that $f$ should have infinite degree, that's possible if and only if $f=0$ in $K[x]$ and so in $A[x]$ too.