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-- sprintf() %h and %H specifiers --SKIPIF-- <?php if (!setlocale(LC_ALL, "de_DE.utf..
Decoded Output download
--TEST--
sprintf() %h and %H specifiers
--SKIPIF--
<?php
if (!setlocale(LC_ALL, "de_DE.utf8")) die("skip de_DE.utf8 locale not available");
?>
--FILE--
<?php
setlocale(LC_ALL, "de_DE.utf8");
$f = 1.25;
printf("%g %G %h %H
", $f, $f, $f, $f);
$f = 0.00000125;
printf("%g %G %h %H
", $f, $f, $f, $f);
?>
--EXPECT--
1,25 1,25 1.25 1.25
1,25e-6 1,25E-6 1.25e-6 1.25E-6
Did this file decode correctly?
Original Code
--TEST--
sprintf() %h and %H specifiers
--SKIPIF--
<?php
if (!setlocale(LC_ALL, "de_DE.utf8")) die("skip de_DE.utf8 locale not available");
?>
--FILE--
<?php
setlocale(LC_ALL, "de_DE.utf8");
$f = 1.25;
printf("%g %G %h %H\n", $f, $f, $f, $f);
$f = 0.00000125;
printf("%g %G %h %H\n", $f, $f, $f, $f);
?>
--EXPECT--
1,25 1,25 1.25 1.25
1,25e-6 1,25E-6 1.25e-6 1.25E-6
Function Calls
None |
Stats
MD5 | 5c89c8aedf6614228babfbb44ba1f9f9 |
Eval Count | 0 |
Decode Time | 131 ms |