| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
ctype_digit(PHP 4 >= 4.0.4, PHP 5, PHP 7) ctype_digit — 数字かどうかを調べる 説明
bool ctype_digit
( string
$text
)
与えられた文字列 パラメータ
返り値
string 変更履歴
例
例1 ctype_digit() の例
<?php 上の例の出力は以下となります。 The string 1820.20 does not consist of all digits. The string 10002 consists of all digits. The string wsl!12 does not consist of all digits.
例2 ctype_digit() で文字列と整数値を比較する例
<?php 注意
参考
|
![]() |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「ctype_digit - 数字かどうかを調べる」をGoogle検索
|