moin,
wie überprüfe ich, ob _nur_(0 1 2 3 4 5 6 7 8 9 . ,) in einer Variablen (aus einem Formular) sind?
mfg
P.S.:
funzt folgende Funktion:
function convert ($data) //Wandelt z. B. 7,4 in 7.4 um
{
$temp = $data;
$temp = str_replace(",",".",$temp);
$data = (double) $temp;
}
??