Jump to content

Search the Community

Showing results for tags 'true / false'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 1 result

  1. Hi Freaks, Just some quick questions: 1) Assuming the function test() returns a true or false value, would these two pieces of code process the same? (if not could you please explain why) if(test()){ // action(s) } //and if(test() === true){ //action(s) } 2) Same question except for false: if(!test()){ // action(s) } //and if(test() === false){ //action(s) } 3) if the function returned a string / integer / array / true on success or false on failure would the actions in the if loop execute? (assuming that the function test returned success and therefore was a string / integer / array / true): if(test()){ // action(s) } Thanks for reading and for everyones help in advance. I know this kind of post would generally be responded to with go try it for yourself but my XAMPP has currently been not allowing me to turn on Apache because of an error. Timothy
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.