Logo

Programming-Idioms

  • PHP
  • Java
import static java.lang.System.out;
out.print("Hello, World!");
System.out.println("Hello World");
echo "Hello World" . PHP_EOL;

Use PHP_EOL instead of \n
<?='Hello World'?>

Using the short echo syntax, a non-deprecated short tag expression.
<?php echo 'Hello World'; ?>

Characters outside of execution blocks are immediately echoed.
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");

New implementation...
< >
programming-idioms.org