Intro to Workspaces and PHP Code3:53 with Alena Holligan
Workspaces make it even easier then normal to get up and running here at Treehouse. We have supplied you with a web based server and the starting code you'll be working with. We'll use workspaces to write our first program and view it in a browser.
Workshop: Using Treehouse Workspaces
Workshop: Basic Error Handling in PHP
PHP 'echo' and 'print' Statements
echo and print are more or less the same. They are both used to output data to the screen.
The differences are small: echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters (although such usage is rare) while print can take one argument. echo is marginally faster than print, which is why it is most commonly used.
You need to sign up for Treehouse in order to download course files.Sign up