PDA

View Full Version : PHP hello World



tandoc
April 25th, 2002, 03:10
is it this?

<?php echo('Hello World') ?>

Christopher
April 25th, 2002, 07:34
Well, no...

If you're using the echo function, you don't need the parentheses, so it would be like this:

<?php
echo "Hello World";
?>
But if you do want to use them, I think you still can, but put double quotes, not single, like this:

<?php
echo("Hello World");
?>

tandoc
April 25th, 2002, 07:58
works all ways...

http://defrosted.dot.nu