Fox
Muszę sprawdzić czy wprowadzony string jest liczbowy. Metoda wygląda tak:
function is_digits($string=$this->numeryczne)
{
if(!preg_match ("/[^0-9]/", $element) == 1)
{
return True;
}
}
Majac string=12345 metoda zwraca True, teraz problem - co jesli w srodku znajduje się
kropka lub przecinek ?
Moze ktos pomoc bo w regularnych cienki jestem :)
Pozdrawiam
function is_digits($string=$this->numeryczne)
{
if(!preg_match ("/[^0-9]/", $element) == 1)
{
return True;
}
}
Majac string=12345 metoda zwraca True, teraz problem - co jesli w srodku znajduje się
kropka lub przecinek ?
Moze ktos pomoc bo w regularnych cienki jestem :)
Pozdrawiam
Powered by Linux and siemens s7
PLCs...
PLCs...
