For example, let $\phi:\mathbb{Z}^3_3\to\mathbb{Z}^2_3$ be a linear map with $$\phi\begin{pmatrix}x_1\\x_2\\x_3\end{pmatrix}:=\begin{pmatrix}x_1+x_3\\x_2-x_1+x_3\end{pmatrix}$$
How do I determine, if $\phi$ is injective/surjective? Can we use the fact that if (edited) $\dim(\operatorname{ker}\phi)=0$, then the linear map is injective?