logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How do you define a constant?


  • Correct Answer
  • Via define() directive, like define ("MYCONSTANT", 100); 


  • Technology problems


    Search Results


    • 1. What?s the difference between include and require?
    • Discuss
    • 2. What?s the difference between md5( ), crc32( ) and sha1( ) crypto on PHP?
    • Discuss
    • 3. What is the difference between characters 23 and x23?
    • Discuss
    • 4. What?s the special meaning of __sleep and __wakeup?
    • Discuss
    • 5. If the variable $a is equal to 5 and variable $b is equal to character a, what?s the value of $$b?
    • Discuss
    • 6. How do you pass a variable by value?
    • Discuss
    • 7. Explain the ternary conditional operator in PHP?
    • Discuss
    • 8. Are objects passed by value or by reference?
    • Discuss
    • 9. How do you call a constructor for a parent class?
    • Discuss
    • 10. Would you initialize your strings with single quotes or double quotes?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment