In PHP
we echo
strings this way :
echo 'string';
But i saw PHP
frameworks like Laravel
and scripts echo
strings using Curly Brackets
:
{string}
How i can do that without using any PHP
framework?
It's not necessary to use Curly Brackets
if there is other way to short echo!
I prefer code examples.
You can short echo by
<?= $variable; ?>
when you open a new php tagor you use, as described in your question a framework such as laravel - that's pretty much it
What you can do, but I'm not really sure if it's a good idea - write a function like: