Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- numfmt_format() with type conversion --EXTENSIONS-- intl --FILE-- <?php function..

Decoded Output download

--TEST--
numfmt_format() with type conversion
--EXTENSIONS--
intl
--FILE--
<?php

function ut_main()
{
    $fmt = ut_nfmt_create( 'en_US', NumberFormatter::DECIMAL );
    $number = 1234567.891234567890000;

    $str_res = ut_nfmt_format ($fmt, $number, NumberFormatter::TYPE_INT32)."
";
    return $str_res;
}

include_once( 'ut_common.inc' );

// Run the test
ut_run();

?>
--EXPECT--
1,234,567

Did this file decode correctly?

Original Code

--TEST--
numfmt_format() with type conversion
--EXTENSIONS--
intl
--FILE--
<?php

function ut_main()
{
    $fmt = ut_nfmt_create( 'en_US', NumberFormatter::DECIMAL );
    $number = 1234567.891234567890000;

    $str_res = ut_nfmt_format ($fmt, $number, NumberFormatter::TYPE_INT32)."\n";
    return $str_res;
}

include_once( 'ut_common.inc' );

// Run the test
ut_run();

?>
--EXPECT--
1,234,567

Function Calls

None

Variables

None

Stats

MD5 65dc254966a8cbf4a99c9285ad188e0b
Eval Count 0
Decode Time 99 ms