PHP PHP Arrays and Control Structures PHP Conditionals Conditionals

Simone Dudley
Simone Dudley
2,750 Points

Don't understand question: var_dump(5 <> 6);

What is <> doing in this comparison?

1 Answer

Sean T. Unwin
MOD
Sean T. Unwin
Treehouse Moderator 28,648 Points

<> is way to say 'not equal to'.

This is covered in a previous video, https://teamtreehouse.com/library/negation-operator, just after the 2 minute mark.

Simone Dudley
Simone Dudley
2,750 Points

Thanks Sean must have missed that part!