Select the sentence that correctly replaces the indirect object in this sentence with an indirect object pronoun:

J'ai parlé avec Philippe.

A. Je les ai parlé.
B. Je l'ai parlé.
C. Je lui ai parlé.​