HardCoreMore Posted September 8, 2010 Share Posted September 8, 2010 I am wondering since in php when you write string in " " quotes php will look if there is any variable and if it is it will read that variable and replace variable name with that value inside the string. However when i use ' ' quotes php will not look for any variables inside that string. So my question is when you write a really big application is it good to always use ' ' quotes when you can instead of " " ones. Does that have an impact on performance. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/212838-double-quotes-performance/ Share on other sites More sharing options...
trq Posted September 8, 2010 Share Posted September 8, 2010 You may find benchmarks around for this but basically, these kinds of micro optimizations aren't worth worrying about. Quote Link to comment https://forums.phpfreaks.com/topic/212838-double-quotes-performance/#findComment-1108587 Share on other sites More sharing options...
HardCoreMore Posted September 8, 2010 Author Share Posted September 8, 2010 Hey thanks for reply. If these are micro optimizations than is ok. I though that maybe this has larger impact on performance. Thanks for sharing your experience Quote Link to comment https://forums.phpfreaks.com/topic/212838-double-quotes-performance/#findComment-1108596 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.