how can I convert an input: $num1 = $_POST['num1'];
Say someone enters 1,5 and I want this to convert to 1.5
How can I do this?
Thanks for your time
$conv = str_replace(",", ".", $num1);
echo($conv); // to test it out
works perfectly, thanks a million