A supramolecular fluorescent sensor array was firstly used to simultaneously qualitatively and quantitatively analyze quaternary ammonium herbicides.