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