logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain the ternary conditional operator in PHP?


  • Correct Answer
  • Expression preceding the ? is evaluated, if it?s true, then the expression preceding the : is executed, otherwise, the expression following : is executed 


  • Technology problems


    Search Results


    • 1. How do you pass a variable by value?
    • Discuss
    • 2. How do you define a constant?
    • Discuss
    • 3. What?s the difference between include and require?
    • Discuss
    • 4. What?s the difference between md5( ), crc32( ) and sha1( ) crypto on PHP?
    • Discuss
    • 5. What is the difference between characters 23 and x23?
    • Discuss
    • 6. Are objects passed by value or by reference?
    • Discuss
    • 7. How do you call a constructor for a parent class?
    • Discuss
    • 8. Would you initialize your strings with single quotes or double quotes?
    • Discuss
    • 9. For printing out strings, there are echo, print and printf. Explain the differences.
    • Discuss
    • 10. What?s the difference between htmlentities( ) and htmlspecialchars( )?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment