That syntax is not a valid syntax to echo
a statement with PHP, it's the smarty framework who uses that, which is nothing but a template engine.
Also, don't confuse that syntax with something like
<title><?php echo "This is a {$title[0]}"; ?></title>
Which is a valid syntax in PHP, but you need to use the curly braces here, as you are echoing an index of an array.. For more information, you can read an answer here..
As you commented that you want to shorten up your codes, than an alternate way to echo
in PHP is to use <?=
but before that, do have a read here.
Or else, declare a function
with shortest name like
function e($string) {
echo $string;
}
e('Echo This String'); //Or
e($string);