Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Basics (Retired) PHP Datatypes Strings

is anyone else having an issue with their first greeting line of $greeting being indented?

Just curious because my first line is indented and I believe my code is identical to Hamptons. This training video can use some modifications. I hope it gets better from here.

2 Answers

Christopher Storms
Christopher Storms
4,474 Points

I noticed the same thing. My opening < ? php tag was on the line after the opening < pre > tag. I changed it to resemble the code in the video so they were on the same line with no spaces. This solved the discrepancy. The reason being that the pre tag displays the output inside of it preformatted, including any tabs. Hope this helps.

If I remember correctly he fixes it in a later step. So it is there on purpose for now.

Ok Mat. I have not got to the step where he fixes it, but thanks for confirming it's not my issue. I can't mark your answer as the answer until I get to that point in the training.