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 trialNana Smith
833 PointsWhat is the point behind comparing values in the over scheme, with regard to PHP?
What is the point behind comparing PHP values? I know the picture is still developing, as I have not completed the course however, what is it for?
2 Answers
Devin Scheu
66,191 PointsComparing values is very useful! Say you wanted to print every other value in a list, check if a user's age is greater that 18 to play a certain game, check if a person click a button on a webpage. All these things require logical operators in order to be coded. As you progress you see many applications of comparing values.
Idan Melamed
16,285 PointsI think it's mainly for working with databases...
Nana Smith
833 Pointsthank you!
Nana Smith
833 PointsNana Smith
833 PointsThank you!