PHP PHP Arrays and Control Structures PHP Conditionals Conditionals

Simone Dudley
Simone Dudley
3,043 Points

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

What is <> doing in this comparison?

1 Answer

Sean T. Unwin
Sean T. Unwin
28,651 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
3,043 Points

Thanks Sean must have missed that part!