Lines Matching refs:sprintf
2 Test sprintf() function : Rope Optimization
23 var_dump(sprintf("const"));
27 var_dump(sprintf("%s", $a));
31 var_dump(sprintf("%s/%s", $a, $b));
35 var_dump(sprintf("%s/%s/%s", $a, $b));
39 var_dump(sprintf("%s/%s/%s", $a, $b, $c));
43 var_dump(sprintf("%s/", func("baz")));
47 var_dump(sprintf("/%s", func("baz")));
51 var_dump(sprintf("/%s/", func("baz")));
55 var_dump(sprintf("%s%s%s%s", $a, $b, func("baz"), $a));
59 var_dump(sprintf("%s/%s", sprintf("%s:%s", $a, $b), sprintf("%s-%s", func('baz'), func('baz'))));
63 var_dump(sprintf(sideeffect()));
67 var_dump(sprintf("%s-%s-%s", __FILE__, __LINE__, 1));
72 …var_dump(sprintf("%s%s%s", "{$values[0]}{$values[1]}{$values[2]}", "{$values[3]}{$values[4]}{$valu…
76 var_dump(sprintf("%s%s%s", new Foo(), new Foo(), new Foo(), ));
80 var_dump(sprintf(...));
84 var_dump(sprintf('%%s'));
88 var_dump(sprintf('%%s', 'test'));
92 var_dump(sprintf('%s-%s-%s', [], [], []));
96 var_dump(sprintf(""));
100 var_dump(sprintf());
104 var_dump(sprintf('%s-%s-%s', true, false, true));
118 #0 %s(32): sprintf('%s/%s/%s', 'foo', 'bar')
151 string(7) "sprintf"
175 ArgumentCountError: sprintf() expects at least 1 argument, 0 given in %s:97
177 #0 %s(97): sprintf()