mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
22 lines
443 B
PHP
22 lines
443 B
PHP
--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 [.]
|