A layered zinc phosphate decorated with organic fluorophores for selective luminescent sensing of metal cations.