Catalyzes the dephosphorylation of pyridoxal-phosphate (PLP) and sugar phosphate. H2O + pyridoxal 5'-phosphate = phosphate + pyridoxal sugar phosphate + H2O = sugar + phosphate. Magnesium. Can also use other divalent metal cations as manganese, cobalt or zinc. Belongs to the HAD-like hydrolase superfamily. Cof family. Extended N-terminus.