This question is about code optimalization: What is better for performance and why (the first example is cleaner for human being->programmer->me)?
$value = $anothervalue = getValue();
or
$anothervalue = $getValue;
$value = $anothervalue;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This has nothing to do with real performance issues.
Performance improvement is when you replaced 100 sql queries with 1 and reduced page generation time from 1 second to 0.0001s
As long as you cannot (can you?) measure the difference between 2 cases – use the one that is more readable and easy to maintain