I want to make sure the input is A)a number and B)has at most 2 decimals.
$number[$i]=int(100*$number[$i])/100;
I imagine there is a more efficient way to do this… any suggestions? (using PHP).
I want to make sure the input is A)a number and B)has at most
Share
1 Answer