|
NumberFormatter::parsenumfmt_parse数値をパースする 説明オブジェクト指向型
public intfloatfalse NumberFormatter::parse(string
$string, int $type = NumberFormatter::TYPE_DOUBLE, int &$offset = null)手続き型 intfloatfalse numfmt_parse(
NumberFormatter $formatter,string $string,int $type = NumberFormatter::TYPE_DOUBLE,int &$offset = null) 現在のフォーマット規則を使用して、文字列を数値にパースします。 パラメータ
戻り値
パースした数値、あるいはエラー時に 例例1 numfmt_parse の例 例2 オブジェクト指向の例 上の例の出力は以下となります。 1234567.891 1234567 参考
|