math - How to add many variables vertically for readability in php -


i have 45 different values need add, , avoid having long line of variable + variable + variable, i'm looking way add them vertically make easier read.

only thing can think of load them array, there better way?

$variable+  $variable+  $variable+  $variable+ 

load them array , use array_sum


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -