Catalysis of an oxidation-reduction (redox) reaction in which a phosphorus- or arsenic-containing group acts as a hydrogen or electron donor and reduces a NAD(P)+ to NAD(P)H.
oxidoreductase activity, acting on phosphorus or arsenic in donors, with NAD(P)+ as acceptor