@ 2014-03-08T12:28:53Z <?php
$replacements = array(
"{0}" => "Динамо Киев",
"{1}" => "87"
);
$resultGoal = strtr($replacements, 'Первый гол: {0} на {1} мин.');
echo $resultGoal;
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught TypeError: strtr(): Argument #1 ($string) must be of type string, array given in /in/6b0QN:8
Stack trace:
#0 /in/6b0QN(8): strtr(Array, '\xD0\x9F\xD0\xB5\xD1\x80\xD0\xB2\xD1\x8B\xD0\xB9 \xD0\xB3...')
#1 {main}
thrown in /in/6b0QN on line 8
Process exited with code 255 . Output for 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.7 , 7.2.29 - 7.2.33 , 7.3.12 - 7.3.33 , 7.4.0 - 7.4.33 Warning: strtr() expects parameter 1 to be string, array given in /in/6b0QN on line 8
Output for 5.2.5 - 5.2.17 Warning: strtr(): The second argument is not an array in /in/6b0QN on line 8
Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.9 , 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.4 Warning: strtr(): The second argument is not an array. in /in/6b0QN on line 8
Output for 4.3.0 - 4.3.1 Warning: strtr() [http://www.php.net/function.strtr]: The second argument is not an array. in /in/6b0QN on line 8
preferences:dark mode live preview
257.16 ms | 401 KiB | 310 Q