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 trialAlec Turner
2,014 PointsCreate Two Integer Variables - The first will be named $integerOne with a value of 1 and the second will be named $integ
Create Two Integer Variables - The first will be named $integerOne with a value of 1 and the second will be named $integerTwo with a value of 2
<?php
//Place your code below this comment
?>
Flávia Souza
3,049 Points$integerOne = 1;
$integerTwo = 2;
1 Answer
Eric Drake
6,339 PointsAlec,
Two users responded to this already. Their answers are correct. To declare the variables according to the challenge, use the code below:
$integerOne = 1; $integerTwo = 2;
Please let me know if you have any questions about this answer.
WK h
2,924 PointsWK h
2,924 PointsSince the question is asking to create variable, I believe what you need to do is declare a variable first like this $ dollar sign, then give the name as integerOne, so it becomes like $integerOne, then assign a value to it. So the output would be like $integerOne = 1; $integerTwo = 2; Hope this help!