logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Would you initialize your strings with single quotes or double quotes?


  • Correct Answer
  • Since the data inside the single-quoted string is not parsed for variable substitution, it?s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution 


  • Technology problems


    Search Results


    • 1. How do you call a constructor for a parent class?
    • Discuss
    • 2. Are objects passed by value or by reference?
    • Discuss
    • 3. Explain the ternary conditional operator in PHP?
    • Discuss
    • 4. How do you pass a variable by value?
    • Discuss
    • 5. How do you define a constant?
    • Discuss
    • 6. For printing out strings, there are echo, print and printf. Explain the differences.
    • Discuss
    • 7. What?s the difference between htmlentities( ) and htmlspecialchars( )?
    • Discuss
    • 8. How to open a file?
    • Discuss
    • 9. Why we use array_flip
    • Discuss
    • 10. What is a .htacces file
    • Discuss


    Comments

    There are no comments.

Enter a new Comment