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
over 1 year ago
·
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"
over 1 year ago
·
touché @jeanmask ;)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#