<?php
define("T1","one");
define("T2","two");
var T3 = 'mierder');
$test='numbers %2$s %1$s, %3$s';
$test=sprintf($test, T1,T2, T3);
echo $test;
- Output for 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'var' (T_VAR), expecting end of file in /in/Dt9CA on line 4
Process exited with code 255. - Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
- Parse error: syntax error, unexpected 'var' (T_VAR) in /in/Dt9CA on line 4
Process exited with code 255.
preferences:
173.46 ms | 1395 KiB | 28 Q