logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How do you pass a variable by value?


  • Correct Answer
  • Just like in C++, put an ampersand in front of it, like $a = &$b 


  • Technology problems


    Search Results


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


    Comments

    There are no comments.

Enter a new Comment