Page 1 of 1

ctype_digit() Question

Posted: Sat Feb 05, 2005 1:35 pm
by mmc01ms
Hi guys im trying to validate a price field and the ctype_digit() function wont allow decimal values through. I've checked the php manual and none of the ctype functions check if the value is a decimal. Anyone know of another way i could do this?

Posted: Sat Feb 05, 2005 1:36 pm
by feyd
cast to float.