First of all, hat tip to @Fayz for providing this definition.
Backstory: I broke my glasses several days ago and, in the meantime, this important definition was written on a board I could not see. The lecturer not being, well, good... I didn't catch even the gist of this definition and now have exercises that use it extensively.
Let $(X, d)$ and $(Y, e)$ be metric spaces, and let $x \in X$.
A function $f : X \to Y $is continuous at $x$ if $\forall\ B \in \mathcal{B}(f(x)),\ \exists A \in \mathcal{B}(x) : f(A) \subseteq B$.
The only thing I know about this definition is the fact that it uses the concept of balls in a metric space, an idea with which I'm quite familiar from previous courses:
$$ B(x,\ r) = \{ p \in X : d(x,\ p) < r \} $$
where $B(x,r)$ is an open ball about $x$ of radius $r$, and $d$ is a metric on a set $X$.
I don't know what $\mathcal{B}$ is supposed to be.
Can anyone provide an actual explanation of this definition?
One definition for continuous functions between metric spaces is as follows:
Let $(X,d)$ and $(Y,e)$ be metric spaces, and $x\in X$. A function $f:X\to Y$ is continuous at $x$ if $\forall \epsilon>0$, $\exists \delta>0$ such that $f(B_d(x,\delta))\subset B_e(f(x),\epsilon)$.
Here $B_d(x,\delta)=\{p\in X:d(x,p)<\delta\}$, a ball of radius $\delta$ about $x\in X$, and $B_e(f(x),\epsilon)=\{q\in Y:e(f(x),q) <\epsilon\}$, a ball of radius $\epsilon$ about $f(x)\in Y$.
(Note: you may be more familiar with this equivalent version: $f:X\to Y$ is continuous at $x$ if $\forall \epsilon>0$, $\exists \delta>0$ such that whenever for $z\in X$ and $d(x,z)<\delta$, we have $e(f(x),f(z)) < \epsilon$.)
So to interpret your given statement, the first $\cal B(f(x))$ represents the collection of all possible open balls about the point $f(x)\in Y$, that is $\cal B(f(x))=\{B_e(f(x)):\forall\epsilon>0\}$, and $\cal B(x)$ represents the collection of all possible open balls about $x\in X$, that is $\cal B(x)=\{B_d(x,\delta):\forall \delta>0\}$.
Hence the statement "$\forall B\in{\cal B(f(x))}, \exists A\in {\cal B(x)}:f(A)\subset B$" is read as: for any open ball $B$ about the point $f(x)$ (of any radius, say $\epsilon$), we can find some open ball $A$ about $x\in X$ (of radius say $\delta$) such that the image $f(A)$ fits in $B$.