Bifunctional nanoparticles constructed using one-pot encapsulation of a fluorescent polymer and magnetic (Fe3O4) nanoparticles in a silica shell.