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

Answer Posted / rajan vardawaj

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.

Is This Answer Correct ?    22 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the values are ordered in an array?

565


What are html entities?

502


/temp is a type of filesystem directory. State Whether True or False?

582


What are session variables in php?

521


What is the difference server side and browser side validation?

482






Which php framework is best for security?

515


Which will start a session?

574


Who is known as the father of php?

556


What's the difference between __sleep and __wakeup?

544


List functions available to sort an php array?

541


How does the identity operator ===compare two values in PHP?

649


What is the meaning of ‘escaping to php’?

614


Is key exist in array php?

532


What does it mean when it says the csrf token is invalid?

496


Which function(s) in PHP computes the difference of arrays?

573