I define the content of a variable in PHP
using HEREDOC
$ptrn = <<<EOF
En %2$s se ha bebido %1$d cervezas!
EOF;
When I try to format with sprinf
$ptrn = sprintf($ptrn,7,"Paco");
returns the following error
Notice: Undefined variable: s in C: \ xampp \ htdocs \ androidtemplates \ test.php on line 7