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 Unit Converter Arithmetic Operators

var_dump ... not working correctly?

Im not sure what I am doing wrong. based on the information and was doing along side of the video https://teamtreehouse.com/library/arithmetic-operators.


the console is not returning the answer along with the type.

thanks in advance.

Never mind. I did not wrap everything in PHP tags **FACEPALM **

Michael Cockrell
Michael Cockrell
Courses Plus Student 542 Points

it happens! this course is a lot different than most other courses because it works from an actual php file whereas most other course work through a php terminal emulator. its annoying until you get used to it, but it is way more practical than typing something in an emulator and getting a result. printing something to the screen is almost always not the goal of php programming and even when it is you still have to write the html/css of the page in order to display it.