Mailinglisten-Archive |
Ulrich Vogel wrote:
>
> Hallo,
> mit
>
> if(eregi("([0-9])",$e_anzahl_of))
>
[..]
> Gibts eine Möglichkeit, auf NUR-Zahlen zu prüfen?
>
hi ulrich,
mit:
$laenge = strlen($e_anzahl_of);
if(eregi("([0-9]{$laenge})",$e_anzahl_of)) {
...
}
gruss
-- rainer
php::bar PHP Wiki - Listenarchive