What's the meaning of "it was with"?
Dr. Doliitle cured a horse because he could talk him.
And so it was with all the other animals that were brought to him. As soon as they found that he could talk their language, they told him where the pain was and how they felt, and of course it was easy for him to cure them.
This is from a novel "The story of Doctor Dolittle". I can't understand this usage of "with". Could you teach me?