Is there any way to print a constant in the middle of a string , without using concatenation, how do you do with variables in PHP?
Example:
$nome = 'wallace';
echo "Meu nome é {$nome}";
For constants, I know I could print concatenating:
echo 'meu nome é' . NOME_USUARIO;
But I'd like to avoid concatenation because I find it inelegant.
Are there other possible ways to do this?