SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Poorly worded question in PHP Coding course

3 years 5 months ago #123531 by Cockroach
If you want a variable to represent True or False, which is the best way to represent it?
TRUE
true
1

Should probably read:

If you want a variable to represent Boolean True, which is the best way to represent it?
TRUE
true
1

There are other alternatives in modification of the answers also to indicate the Boolean TRUE or FALSE state. But no single Boolean variable will be able to represent TRUE and FALSE simultaneously.

Please Log in to join the conversation.

3 years 5 months ago #123538 by Nick
Hi Cockroach,

Good catch! I've gone ahead and switched it to:

If you want a variable to represent Boolean True, which is the best way to represent it?


Thanks for your feedback!

Cheers,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!