WordPress.org

Ready to get started?Download WordPress

Forums

true/false vs. 1/0 (2 posts)

  1. Nick Momrik
    Member
    Posted 10 years ago #

    Why is there such a variance in the code from using true/false to 0/1 for what seem like boolean variables? A lot of the tests on these variables are the same way, either testing if(!$variable) or if (intval($variable) == 1). Are there plans for the variables that have 0/1 to eventually have more options?

  2. antifuse
    Member
    Posted 10 years ago #

    sounds to me like developer preference... since there's more than one person working on the code, there's probably some devs that like using 1/0 and some that like using true/false :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.