PHP - "Sal's mall is $emo" vs "Sal's mall is ".$emo - string with quotes concatenation efficiency -


In PHP, there is a better way to add strings in terms of resources (with single-coat)?

"Mall of the year is $ emo."

Or:

  "Cell is the mall". $ Emo '.' ' 

Or:

' Mall of the Year '. $ Emo '.' '

 ' mall of year '. $ Emo '. ' 

The third route is more efficient (slightly). You can make a loop with it yourself:

 For  ($ i = 0; $ i & lt; 100000; $ i ++) {// enter code here}  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -