<?php function &collector() { static $collection = array(); return $collection; } $collect = &collector(); $collect[] = 'foo'; print_r(collector());
You have javascript disabled. You will not be able to edit any code.