![]() |
is_numeric |
|
| |
||
| bool is_numeric ( mixed var) |
|
|
|
(PHP 4 , PHP 5) |
|
|
|
Die Funktion is_numeric () überprüft, ob es sich bei der Variable (var) Siehe auch: |
|
|
<?PHP $a = 0; $b = 1.14; $c = "123"; if(is_numeric ($a)) echo "\$a ist eine Zahl\n"; if(is_numeric ($b)) echo "\$b ist eine Zahl\n"; if(is_numeric ($c)) echo "\$c ist eine Zahl\n"; ?> |
|
|
|
$a ist eine Zahl |
|
| |
| weiter: |
|
| zurück: |
|
© 2001, 2002, 2003, 2004, 2005, 2004, 2005
Damir Enseleit, mail@selfphp.de