PHP's Hello World!
Newest PHP version(>= 5.4):
<?= "Hello World!"; ?>
edit:
Old PHP versions
<?php echo "Hello World!"; ?>
PS:
The option short_open_tag is always avaible on PHP 5.4 ;)
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
Written by Jean Oliveira Rodrigues
Related protips
3 Responses
It's worth noting that specific code will only work if the server php shortopentag turned on. I would strongly recommend putting the longer version <?php echo "Hello World"; ?></code> into practice. A longer better description can be found here: http://www.askapache.com/php/shorthand-shortopentag.html
This option short_open_tag is always avaible on PHP 5.4 ;)
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
"New is always better"
touché @jeanmask ;)
Have a fresh tip? Share with Coderwall community!
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside