2008-08-25, 02:21 PM
Hello All,
First of all, hats off to the MyBB team for the excellent software. I have used it for sometime, and really liked the look and feel of it. I went through the code and found that, at a lot of places, strings are enclosed within double quotes instead of single quotes. But enclosing strings within double quotes makes the php interpreter look inside the string for variables. This creates an unnecessary overhead for the interpreter. So, even if the difference is not much significant, isn't it a better programming practise to make better use of single quotes wherever possible? Afterall, it doesn't have any disadvantage
First of all, hats off to the MyBB team for the excellent software. I have used it for sometime, and really liked the look and feel of it. I went through the code and found that, at a lot of places, strings are enclosed within double quotes instead of single quotes. But enclosing strings within double quotes makes the php interpreter look inside the string for variables. This creates an unnecessary overhead for the interpreter. So, even if the difference is not much significant, isn't it a better programming practise to make better use of single quotes wherever possible? Afterall, it doesn't have any disadvantage