Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is '<?=' the same as 'echo'?

Tags:

php

echo

I've found some page where people print strings on the web page with this:

<?= 'hello world'; ?>

Is this a faster way to print strings in one row of code or does it work different?

like image 200
vitto Avatar asked Jun 04 '11 10:06

vitto


People also ask

Is Echo and Dot the same?

It is a standalone smart device and a full-size smart speaker equipped with always-on Alexa. The Dot is just as smart as the original Echo but works best with an external audio system attached.

Are Echo and Alexa the same?

Alexa and Echo are not the same thing. The main difference is that Alexa is the software and Echo is the hardware. Alexa is Amazon's AI virtual assistant technology that lives in the cloud. Echo is a product line of Amazon smart speakers that come with Alexa AI technology built in.

What is an Echo device called?

Amazon Echo, often shortened to Echo, is an American brand of smart speakers developed by Amazon. Echo devices connect to the voice-controlled intelligent personal assistant service Alexa, which will respond when a user says "Alexa".

What is the alternative for Echo?

Because of its enhanced AI functionality, beefy music streaming library, and Chromecast options, Google Home is an excellent Amazon echo alternative.


2 Answers

Yes. This would work as echo, but it IS NOT RECOMMENDED and many servers have got this availability disabled. It's called "short tag"

like image 80
genesis Avatar answered Sep 19 '22 06:09

genesis


According to the documentation, the <?= ... ?> form is a shortcut for echo, so they should be the same from a performance perspective.

like image 42
T.J. Crowder Avatar answered Sep 18 '22 06:09

T.J. Crowder