News for hackers. Stuff that matters.
Re:PHP in a Tweet by afrdofdwnvtes on Tuesday October 08, 2013 @05:19PM (#6517924)
Well how about this then.

    foreach(array(1,2,3,4,5) as $x) $i=$i+$x; echo $i;
Re:PHP in a Tweet by tel on Tuesday October 08, 2013 @07:00PM (#6518416)
The array_reduce answers get closer to what I was looking for. This might be a "one line" answer, but it requires two special forms, assignment, sequencing operators (;), and two fresh variables.
Re:PHP in a Tweet by paul_f on Tuesday October 08, 2013 @09:11PM (#6518918)
This works, is fast enough and readable. Perfectly fine solution to me.