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-- Bug #27457 (Problem with strtr() and translation array) --FILE-- <?php $test ..

Decoded Output download

--TEST--
Bug #27457 (Problem with strtr() and translation array)
--FILE--
<?php
    $test = "Dot in brackets [.]
";
    echo $test;
    $test = strtr($test, array('.' => '0'));
    echo $test;
    $test = strtr($test, array('0' => '.'));
    echo $test;
    $test = strtr($test, '.', '0');
    echo $test;
    $test = strtr($test, '0', '.');
    echo $test;
?>
--EXPECT--
Dot in brackets [.]
Dot in brackets [0]
Dot in brackets [.]
Dot in brackets [0]
Dot in brackets [.]

Did this file decode correctly?

Original Code

--TEST--
Bug #27457 (Problem with strtr() and translation array)
--FILE--
<?php
    $test = "Dot in brackets [.]\n";
    echo $test;
    $test = strtr($test, array('.' => '0'));
    echo $test;
    $test = strtr($test, array('0' => '.'));
    echo $test;
    $test = strtr($test, '.', '0');
    echo $test;
    $test = strtr($test, '0', '.');
    echo $test;
?>
--EXPECT--
Dot in brackets [.]
Dot in brackets [0]
Dot in brackets [.]
Dot in brackets [0]
Dot in brackets [.]

Function Calls

strtr 1

Variables

$test Dot in brackets [.]

Stats

MD5 92b2fa2c84b07aa6fbb54878c71f6212
Eval Count 0
Decode Time 132 ms