PHP PHP Basics Getting to Know PHP Intro to Workspaces and PHP Code

Vijayalaxmi vastrad
Vijayalaxmi vastrad
2,043 Points

command line printing the output with tags

treehouse:~/workspace$ php hello.php
<? php
echo hello world;
?>treehouse:~/workspace$

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 50,936 Points

I found two issues:

(1) You have a space between ? and php in the opening tag

(2) You need quotes around your text

Try:

<?php
echo 'hello world';
?>