0

I want to insert my php POST variable value without including comma into my database but the value which is coming into database is only numeric one while I am not selecting 1 the function which I am using is as follows kindly provide me the resolution:

$loanreq=number_format($_POST['loanreq']); 
ankur140290
  • 640
  • 9
  • 25
Sam
  • 1
  • 1
  • 1
  • 7

1 Answers1

0

Your question is not clear,

If you want a numeric digit with no commas in it. you can use a simple

str_replace( ',', '', $_POST['loanreq'] );