Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Vijayalaxmi vastrad
2,789 Points2 Answers
-
<noob />
17,063 Points0 Answers
-
Amber Readmond
7,861 Points6 Answers
-
PLUS
john knight
Courses Plus Student 9,155 Points2 Answers
-
nico dev
20,364 Points2 Answers
-
adhitya ram
1,636 Points3 Answers
-
Priyan Raj
4,169 Pointsabout the software to use this language? what platform do the people use to code this program who doesnt know treehouse
Posted by Priyan RajPriyan Raj
4,169 Points3 Answers
-
PLUS
hasith mayanga
Courses Plus Student 91 Points1 Answer
-
Jessica Diaz
618 PointsWhy is the console not executing the simple script I'm typing that goes along with the PHP Basics tutorial?
Posted by Jessica DiazJessica Diaz
618 Points3 Answers
-
giseletoledo2
3,480 Points2 Answers
-
Barak TheProgrammer
1,773 Points1 Answer
-
bohboh00
2,545 Points2 Answers
-
PLUS
Pai Boony
Courses Plus Student 4,529 Points0 Answers
-
Oscar Camacho
Full Stack JavaScript Techdegree Student 5,428 Points1 Answer
-
Greg Summers
2,137 PointsI unable to get the php-basicx-s1v2.zip file to unzip. Maybe its corrupted? Its in a loop goes from ,zip to .cpgz.
Posted by Greg SummersGreg Summers
2,137 Points0 Answers
-
Ellon Shotgun
3,731 PointsWhich all languages in computer have command line interface?
Posted by Ellon ShotgunEllon Shotgun
3,731 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up