Home > OS >  Unnecessary local variable - is good practice to write redundant variable to be more clear?
Unnecessary local variable - is good practice to write redundant variable to be more clear?

Time:10-22

Is good practice to write redundant variable to be more clear?

$arrImages = array_slice($arrImages, $offset, self::LIMIT_IMAGES);
return $arrImages;

CodePudding user response:

There is no much difference between the 2 ways anyway

it all depends on your personal preferences, and also the project conventions.

  • Related